Merge pull request #17127 from FRRouting/mergify/bp/dev/10.2/pr-17107

tests: iproute2_check_path_selection call the actual command (backport #17107)
This commit is contained in:
Donald Sharp 2024-10-16 05:50:32 -04:00 committed by GitHub
commit eb83a1f5fc
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 = []