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 <sharpd@nvidia.com>
This commit is contained in:
Donald Sharp 2023-04-11 10:49:34 -04:00
parent 59cb833f6a
commit 66d0d2184e

View 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(