]> git.puffer.fish Git - matthieu/frr.git/commitdiff
tests: iproute2_check_path_selection call the actual command
authorDonald Sharp <sharpd@nvidia.com>
Tue, 15 Oct 2024 13:51:08 +0000 (09:51 -0400)
committerMergify <37929162+mergify[bot]@users.noreply.github.com>
Wed, 16 Oct 2024 02:26:43 +0000 (02:26 +0000)
For some reason this was missing.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
(cherry picked from commit c8a947e12bbbcc16d6057975bf7c65661db2fc86)

tests/topotests/lib/common_check.py

index 19f02dbadc9ffc14534833b6f1dacd9f0feda573..b04b9de44e89832b0a3263f05b478c40fecc567f 100644 (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 = []