Merge pull request #17107 from donaldsharp/actuallY_call_the_command

tests: iproute2_check_path_selection call the actual command
This commit is contained in:
Jafar Al-Gharaibeh 2024-10-15 21:24:33 -05:00 committed by GitHub
commit df482a0f79
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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 = []