tests: iproute2_check_path_selection call the actual command

For some reason this was missing.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
(cherry picked from commit c8a947e12b)
This commit is contained in:
Donald Sharp 2024-10-15 09:51:08 -04:00 committed by Mergify
parent ee96c3ceb0
commit 9ef2d1b183

View File

@ -58,7 +58,7 @@ def iproute2_check_path_selection(router, ipaddr_str, expected, vrf_name=None):
else:
cmdstr = f"ip -json route show {ipaddr_str}"
try:
output = json.loads(cmdstr)
output = json.loads(router.cmd(cmdstr))
except:
output = []