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

Re-added TreeNet convenience function.

parent 5fb3d542
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."
......@@ -37,3 +38,8 @@ 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