]> git.puffer.fish Git - matthieu/frr.git/commitdiff
tests: create 8 link, switch pairs, not 8 links on one switch
authorChristian Hopps <chopps@labn.net>
Fri, 24 Mar 2023 21:58:21 +0000 (17:58 -0400)
committerChristian Hopps <chopps@labn.net>
Fri, 7 Apr 2023 05:56:12 +0000 (05:56 +0000)
Signed-off-by: Christian Hopps <chopps@labn.net>
tests/topotests/zebra_rib/test_zebra_rib.py

index 6137471ea69096795015fd037dd6b94568c202ef..e2863218b0c1546f49e5d3e045c15d293f82e126 100644 (file)
@@ -51,7 +51,8 @@ def config_macvlan(tgen, r_str, device, macvlan):
 
 def setup_module(mod):
     "Sets up the pytest environment"
-    topodef = {"s1": ("r1", "r1", "r1", "r1", "r1", "r1", "r1", "r1")}
+    # 8 links to 8 switches on r1
+    topodef = {"s{}".format(x): ("r1",) for x in range(1, 9)}
     tgen = Topogen(topodef, mod.__name__)
     tgen.start_topology()