diff options
author | Donald Sharp <sharpd@nvidia.com> | 2024-09-06 20:29:45 +0200 |
---|---|---|
committer | Donald Sharp <sharpd@nvidia.com> | 2024-09-16 15:34:05 +0200 |
commit | 5a589217f873efaa7684a994c0c2b4ffebe28409 (patch) | |
tree | 5277fa2c92d065dce042f210fe700b9bce25d88d /tests/topotests/lib/common_config.py | |
parent | Merge pull request #16798 from donaldsharp/zebra_more_vrf_debug_data (diff) | |
download | frr-5a589217f873efaa7684a994c0c2b4ffebe28409.tar.xz frr-5a589217f873efaa7684a994c0c2b4ffebe28409.zip |
tests: When finding nexthops ensure that they are active
Do not accept a nexthop as valid unless it is marked as being
active.
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'tests/topotests/lib/common_config.py')
-rw-r--r-- | tests/topotests/lib/common_config.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/topotests/lib/common_config.py b/tests/topotests/lib/common_config.py index 540a627c6..2cee5fdae 100644 --- a/tests/topotests/lib/common_config.py +++ b/tests/topotests/lib/common_config.py @@ -3371,7 +3371,7 @@ def verify_rib( found_hops = [ rib_r["ip"] for rib_r in rib_routes_json[st_rt][0]["nexthops"] - if "ip" in rib_r + if "ip" in rib_r and "active" in rib_r ] # If somehow key "ip" is not found in nexthops JSON |