Mininet Python API Reference Manual
Public Member Functions | Public Attributes | List of all members
mininet.topolib.TreeTopo Class Reference

Topology for a tree network with a given depth and fanout. More...

Inheritance diagram for mininet.topolib.TreeTopo:
mininet.topo.Topo

Public Member Functions

def build
 
def addTree
 Add a subtree starting with node n. More...
 
- Public Member Functions inherited from mininet.topo.Topo
def __init__
 Topo object. More...
 
def build
 Override this method to build your topology. More...
 
def addNode
 Add Node to graph. More...
 
def addHost
 Convenience. More...
 
def addSwitch
 Convenience. More...
 
def addLink
 node1, More...
 
def nodes
 Return nodes in graph.
 
def isSwitch
 Returns true if node is a switch. More...
 
def switches
 Return switches. More...
 
def hosts
 Return hosts. More...
 
def iterLinks
 Return links (iterator) More...
 
def links
 Return links. More...
 
def addPort
 Generate port mapping for new edge. More...
 
def port
 Get port numbers. More...
 
def linkInfo
 Return link metadata dict.
 
def setlinkInfo
 Set link metadata dict.
 
def nodeInfo
 Return metadata (dict) for node.
 
def setNodeInfo
 Set metadata (dict) for node.
 
def convertTo
 Convert to a new object of networkx.MultiGraph-like class cls. More...
 

Public Attributes

 hostNum
 
 switchNum
 
- Public Attributes inherited from mininet.topo.Topo
 g
 
 hopts
 
 sopts
 
 lopts
 
 ports
 

Additional Inherited Members

- Static Public Member Functions inherited from mininet.topo.Topo
def sorted
 Items sorted in natural (i.e. More...
 

Detailed Description

Topology for a tree network with a given depth and fanout.

Member Function Documentation

def mininet.topolib.TreeTopo.addTree (   self,
  depth,
  fanout 
)

Add a subtree starting with node n.

Returns
last node added

The documentation for this class was generated from the following file: