]> git.proxmox.com Git - mirror_frr.git/commitdiff
tests: Ensure that the scale_up.py script tests for actual sharp installed routes...
authorDonald Sharp <sharpd@nvidia.com>
Tue, 11 Apr 2023 14:49:34 +0000 (10:49 -0400)
committerDonald Sharp <sharpd@nvidia.com>
Tue, 11 Apr 2023 14:49:34 +0000 (10:49 -0400)
The scale_up.py script used by several tests installs 50k routes into the rib from
sharpd.  It is first looking for the results in the bgp database.  Let's ensure
that the routes are actually installed into the rib first before looking in
the bgp tables.  This should help situations where the system is under extreme
load.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
tests/topotests/bgp_l3vpn_to_bgp_vrf/scripts/scale_up.py

index eaa6aa4c3072c7269397c08cbc54a1fad118e45b..46993c7d9a4658be8d13caa2c842121a186b63b4 100644 (file)
@@ -62,6 +62,25 @@ else:
         "pass",
         "Adding {} routes".format(num),
     )
+    luCommand(
+        "ce1",
+        'vtysh -c "show ip route summ" | grep "sharp" | cut -d " " -f 33',
+        str(num),
+        "wait",
+        "See all sharp routes in rib on ce1",
+        wait,
+        wait_time=10,
+        )
+    luCommand(
+        "ce2",
+        'vtysh -c "show ip route summ" | grep "sharp" | cut -d " " -f 33',
+        str(num),
+        "wait",
+        "See all sharp routes in rib on ce2",
+        wait,
+        wait_time=10,
+        )
+
     rtrs = ["ce1", "ce2", "ce3"]
     for rtr in rtrs:
         luCommand(