diff --git a/mininet/cli.py b/mininet/cli.py index fa8a50ba50aec4bef9615cceb88f2b845eab14a5..b9dbc3f8baefe9809acc3cc40bf6289123e64263 100644 --- a/mininet/cli.py +++ b/mininet/cli.py @@ -293,7 +293,6 @@ def default( self, line ): self.waitForNode( node ) else: error( '*** Unknown command: %s\n' % first ) - # pylint: enable-msg=W0613,R0201 diff --git a/mininet/topo.py b/mininet/topo.py index 9547fa129a1ec7e3a646c26a6f63330059c9d53e..07f74efabb683fb1b8f14cee554219cbc0a44523 100644 --- a/mininet/topo.py +++ b/mininet/topo.py @@ -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.