Removed unused param in add_link.
This commit is contained in:
+3
-3
@@ -63,7 +63,7 @@ class Topo(object):
|
||||
return result
|
||||
|
||||
def add_link(self, node1, node2, port1=None, port2=None,
|
||||
*default, **opts):
|
||||
**opts):
|
||||
"""node1, node2: nodes to link together
|
||||
port1, port2: ports (optional)
|
||||
opts: link options (optional)
|
||||
@@ -181,7 +181,7 @@ class SingleSwitchTopo(Topo):
|
||||
self.add_link(host, switch)
|
||||
|
||||
|
||||
class SingleSwitchReversedTopo(SingleSwitchTopo):
|
||||
class SingleSwitchReversedTopo(Topo):
|
||||
'''Single switch connected to k hosts, with reversed ports.
|
||||
|
||||
The lowest-numbered host is connected to the highest-numbered port.
|
||||
@@ -194,7 +194,7 @@ class SingleSwitchReversedTopo(SingleSwitchTopo):
|
||||
@param k number of hosts
|
||||
@param enable_all enables all nodes and switches?
|
||||
'''
|
||||
super(SingleSwitchTopo, self).__init__(**opts)
|
||||
super(SingleSwitchReversedTopo, self).__init__(**opts)
|
||||
self.k = k
|
||||
switch = self.add_switch('s1')
|
||||
for h in irange(1, k):
|
||||
|
||||
Reference in New Issue
Block a user