summaryrefslogtreecommitdiff
path: root/tests/topotests/lib/common_check.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/topotests/lib/common_check.py')
-rw-r--r--tests/topotests/lib/common_check.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/topotests/lib/common_check.py b/tests/topotests/lib/common_check.py
index 19f02dbadc..b04b9de44e 100644
--- a/tests/topotests/lib/common_check.py
+++ b/tests/topotests/lib/common_check.py
@@ -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 = []