diff options
author | Sougata Barik <sougatab@nvidia.com> | 2024-10-30 10:30:32 +0100 |
---|---|---|
committer | Sougata <sougatab@nvidia.com> | 2025-01-06 12:32:21 +0100 |
commit | 86b294698f91444097284c18b4d80c4f75530d3a (patch) | |
tree | 33f89ea16be351be4f1ca70e5b2fc07a1ff8f0e7 /tests | |
parent | Merge pull request #17156 from opensourcerouting/eradicate-strncpy (diff) | |
download | frr-86b294698f91444097284c18b4d80c4f75530d3a.tar.xz frr-86b294698f91444097284c18b4d80c4f75530d3a.zip |
zebra: Fix ip protocol route-map issue.
"ip/ipv6 protocol any route-map <route map>" cli is setting
wrong route type ( ZEBRA_ROUTE_MAX ), It should set route type
ZEBRA_ROUTE_ALL.
Ticket: #4101560
Signed-off-by: Sougata Barik <sougatab@nvidia.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/topotests/bgp_suppress_fib/test_bgp_suppress_fib.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/topotests/bgp_suppress_fib/test_bgp_suppress_fib.py b/tests/topotests/bgp_suppress_fib/test_bgp_suppress_fib.py index 3932c29b9..ee7e00b32 100644 --- a/tests/topotests/bgp_suppress_fib/test_bgp_suppress_fib.py +++ b/tests/topotests/bgp_suppress_fib/test_bgp_suppress_fib.py @@ -232,6 +232,20 @@ def test_local_vs_non_local(): assert False, "Route 60.0.0.0/24 should not have fibPending" +def test_ip_protocol_any_fib_filter(): + # "Filtered route of source protocol any should not get installed in fib" + + tgen = get_topogen() + + if tgen.routers_have_failure(): + pytest.skip(tgen.errors) + + r2 = tgen.gears["r2"] + r2.vtysh_cmd("conf\nno ip protocol bgp") + r2.vtysh_cmd("conf\nip protocol any route-map LIMIT") + test_bgp_route() + + if __name__ == "__main__": args = ["-s"] + sys.argv[1:] sys.exit(pytest.main(args)) |