Skip to content
Snippets Groups Projects
Commit 5fb3d542 authored by Bob Lantz's avatar Bob Lantz
Browse files

Restored numbering of tree nodes.

parent 724f1144
No related branches found
No related tags found
No related merge requests found
"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 @@ def addTree( self, depth, fanout ):
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 )
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment