Fix codecheck and MininetWithControlNet.

This commit is contained in:
Bob Lantz
2012-03-10 20:44:34 -08:00
parent 1d814c606d
commit 14ff3ad3d0
11 changed files with 292 additions and 239 deletions
+3 -3
View File
@@ -16,7 +16,7 @@ setup for testing, and can even be emulated with the Mininet package.
# from networkx.classes.graph import Graph
from networkx import Graph
from util import netParse, ipStr
from mininet.util import netParse, ipStr
class NodeID(object):
'''Topo node identifier.'''
@@ -116,7 +116,7 @@ class Topo(object):
per-node/link classes and parameters
per-topo classes
per-network classes"""
def __init__(self, node=None, switch=None, link=None ):
"""Create Topo object.
node: default node/host class (optional)
@@ -364,7 +364,7 @@ class Topo(object):
# BL: may wish to rethink this or just use dicts..
return self.node_info[ dpid ]
class SingleSwitchTopo(Topo):
'''Single switch connected to k hosts.'''