Restored numbering of tree nodes.
This commit is contained in:
@@ -1,7 +1,6 @@
|
|||||||
"Library of potentially useful topologies for Mininet"
|
"Library of potentially useful topologies for Mininet"
|
||||||
|
|
||||||
from mininet.topo import Topo, Node
|
from mininet.topo import Topo, Node
|
||||||
from mininet.net import Mininet
|
|
||||||
|
|
||||||
class TreeTopo( Topo ):
|
class TreeTopo( Topo ):
|
||||||
"Topology for a tree network with a given depth and fanout."
|
"Topology for a tree network with a given depth and fanout."
|
||||||
@@ -38,8 +37,3 @@ class TreeTopo( Topo ):
|
|||||||
return num
|
return num
|
||||||
|
|
||||||
# pylint: enable-msg=W0612
|
# pylint: enable-msg=W0612
|
||||||
|
|
||||||
def TreeNet( depth=1, fanout=2, **kwargs ):
|
|
||||||
"Convenience function for creating tree networks."
|
|
||||||
topo = TreeTopo( depth, fanout )
|
|
||||||
return Mininet( topo, **kwargs )
|
|
||||||
|
|||||||
Reference in New Issue
Block a user