Pass make codecheck.

This commit is contained in:
Bob Lantz
2010-08-17 00:02:30 -07:00
parent 52082ff3f9
commit b7097daad4
2 changed files with 2 additions and 4 deletions
-1
View File
@@ -293,7 +293,6 @@ class CLI( Cmd ):
self.waitForNode( node )
else:
error( '*** Unknown command: %s\n' % first )
# pylint: enable-msg=W0613,R0201
+2 -3
View File
@@ -132,12 +132,12 @@ class Topo(object):
if src not in self.ports:
self.ports[src] = {}
if dst not in self.ports[src]:
# num outlinks
# num outlinks
self.ports[src][dst] = len(self.ports[src]) + src_base
if dst not in self.ports:
self.ports[dst] = {}
if src not in self.ports[dst]:
# num outlinks
# num outlinks
self.ports[dst][src] = len(self.ports[dst]) + dst_base
def node_enabled(self, dpid):
@@ -185,7 +185,6 @@ class Topo(object):
'''Returns true if node is a switch.'''
return self.node_info[n].is_switch
def switches(self, enabled = True):
'''Return switches.