Revision 80be5642 mininet/topolib.py

View differences:

mininet/topolib.py
20 20
           returns: last node added"""
21 21
        me = n
22 22
        isSwitch = depth > 0
23
        self._add_node( me, Node( is_switch=isSwitch ) )
23
        self.add_node( me, Node( is_switch=isSwitch ) )
24 24
        if isSwitch:
25 25
            for i in range( 0, fanout ):
26 26
                child = n + 1
27
                self._add_edge( me, child )
27
                self.add_edge( me, child )
28 28
                n = self.addTree( child, depth-1, fanout )
29 29
        return n
30 30

  

Also available in: Unified diff