Auto-generated patch by python-black
[integration/test.git] / csit / suites / l2switch / topologies / customtopo.py
index 451b638abe79920974b51ee29ff16aea922a31db..3a56420d01299ee28d84f89bdb3353690b0fdf9b 100755 (executable)
@@ -18,14 +18,14 @@ class RingTopo(Topo):
     def __init__(self, switches=3, hosts_per_switch=1, **opts):
         Topo.__init__(self, **opts)
         host_suffix = 1
-        switch = self.addSwitch('s%s' % 1)
+        switch = self.addSwitch("s%s" % 1)
         first_switch = switch
         for i in range(1, switches):
             # add hosts to switch
             add_hosts_to_switch(self, switch, hosts_per_switch, host_suffix)
             host_suffix += hosts_per_switch
 
-            new_switch = self.addSwitch('s%s' % (i + 1))
+            new_switch = self.addSwitch("s%s" % (i + 1))
             self.addLink(new_switch, switch)
             switch = new_switch
 
@@ -39,7 +39,7 @@ class MeshTopo(Topo):
         created_switches = []
         host_suffix = 1
         for i in range(switches):
-            new_switch = self.addSwitch('s%s' % (i + 1))
+            new_switch = self.addSwitch("s%s" % (i + 1))
 
             # add hosts to new switch
             add_hosts_to_switch(self, new_switch, hosts_per_switch, host_suffix)
@@ -51,5 +51,4 @@ class MeshTopo(Topo):
             created_switches.append(new_switch)
 
 
-topos = {'ring': RingTopo,
-         'mesh': MeshTopo}
+topos = {"ring": RingTopo, "mesh": MeshTopo}