Restored numbering of tree nodes.

This commit is contained in:
Bob Lantz
2010-04-10 21:15:15 -07:00
parent 724f1144ac
commit 5fb3d5426c
-6
View File
@@ -1,7 +1,6 @@
"Library of potentially useful topologies for Mininet"
from mininet.topo import Topo, Node
from mininet.net import Mininet
class TreeTopo( Topo ):
"Topology for a tree network with a given depth and fanout."
@@ -38,8 +37,3 @@ class TreeTopo( Topo ):
return num
# 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 )