]> git.puffer.fish Git - matthieu/frr.git/commitdiff
tests: add debugs and count in static_simple test
authorChristian Hopps <chopps@labn.net>
Fri, 27 Oct 2023 05:14:56 +0000 (01:14 -0400)
committerChristian Hopps <chopps@labn.net>
Thu, 28 Dec 2023 17:52:57 +0000 (17:52 +0000)
Also add option to use unified config.

Signed-off-by: Christian Hopps <chopps@labn.net>
tests/topotests/static_simple/r1/mgmtd.conf
tests/topotests/static_simple/r1/zebra.conf
tests/topotests/static_simple/test_static_simple.py

index 0f9f97ca1a3350a584ab7513c56226b1f54005d7..dd5761aa845221101e5c05aca679dd88878a071d 100644 (file)
@@ -1 +1,11 @@
 log timestamp precision 3
+
+! way too noisy
+! debug northbound libyang
+
+debug northbound notifications
+debug northbound events
+debug northbound callbacks
+debug mgmt backend datastore frontend transaction
+debug mgmt client frontend
+debug mgmt client backend
index ec827617ab8dc8b9f09518f2b84508a154cb36b5..e3a44362b511bca3a8653772de542e3f7b889630 100644 (file)
@@ -1,5 +1,15 @@
 log timestamp precision 3
 
+! way too noisy
+! debug northbound libyang
+
+debug northbound notifications
+debug northbound events
+debug northbound callbacks
+debug mgmt backend datastore frontend transaction
+debug mgmt client frontend
+debug mgmt client backend
+
 interface r1-eth0
   ip address 101.0.0.1/24
   ipv6 address 2101::1/64
index fd87224b5743efdf88abe353468c92bc8b7e40e6..f862d81239c9091c6030f0fc604cc3a9f9c77cfc 100644 (file)
@@ -40,6 +40,8 @@ def tgen(request):
         router.net.add_loop("lo-red")
         router.net.attach_iface_to_l3vrf("lo-red", "red")
         router.net.attach_iface_to_l3vrf(rname + "-eth1", "red")
+        #
+        # router.load_frr_config("frr.conf")
         # and select daemons to run
         router.load_config(TopoRouter.RD_ZEBRA, "zebra.conf")
         router.load_config(TopoRouter.RD_MGMTD)
@@ -181,10 +183,11 @@ def guts(tgen, vrf, use_cli):
 
     r1 = tgen.routers()["r1"]
 
-    step("add via gateway", reset=True)
-    do_config(r1, 1, True, False, vrf=vrf, use_cli=use_cli)
-    step("remove via gateway")
-    do_config(r1, 1, False, False, vrf=vrf, use_cli=use_cli)
+    count = 10
+    step(f"add {count} via gateway", reset=True)
+    do_config(r1, count, True, False, vrf=vrf, use_cli=use_cli)
+    step(f"remove {count} via gateway")
+    do_config(r1, count, False, False, vrf=vrf, use_cli=use_cli)
 
     via = f"lo-{vrf}" if vrf else "lo"
     step("add via loopback")