From 66d0d2184ea2a5deea39759d16e88db849d8eb38 Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Tue, 11 Apr 2023 10:49:34 -0400 Subject: [PATCH] tests: Ensure that the scale_up.py script tests for actual sharp installed routes first 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 --- .../bgp_l3vpn_to_bgp_vrf/scripts/scale_up.py | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/tests/topotests/bgp_l3vpn_to_bgp_vrf/scripts/scale_up.py b/tests/topotests/bgp_l3vpn_to_bgp_vrf/scripts/scale_up.py index eaa6aa4c30..46993c7d9a 100644 --- a/tests/topotests/bgp_l3vpn_to_bgp_vrf/scripts/scale_up.py +++ b/tests/topotests/bgp_l3vpn_to_bgp_vrf/scripts/scale_up.py @@ -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(