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

Pass make codecheck.

parent 52082ff3
No related branches found
No related tags found
No related merge requests found
......@@ -293,7 +293,6 @@ def default( self, line ):
self.waitForNode( node )
else:
error( '*** Unknown command: %s\n' % first )
# pylint: enable-msg=W0613,R0201
......
......@@ -132,12 +132,12 @@ def add_port(self, src, dst):
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 @@ def is_switch(self, n):
'''Returns true if node is a switch.'''
return self.node_info[n].is_switch
def switches(self, enabled = True):
'''Return switches.
......
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