class Switch1(Topo):
"""Single switch s1 connected to n=2 hosts."""
+
def __init__(self):
Topo.__init__(self)
switch = self.addSwitch('s1')
class Switch2(Topo):
"""Single switch s2 connected to n=2 hosts."""
+
def __init__(self):
Topo.__init__(self)
switch = self.addSwitch('s2')