From: Igor Ryzhov Date: Wed, 8 Sep 2021 18:10:12 +0000 (+0300) Subject: tests: add one more check for default-originate with route-map X-Git-Tag: base_8.1~81^2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=68d4b72ff37eb2d6d851b0dcd9e69e7a248b6cec;p=mirror%2Ffrr.git tests: add one more check for default-originate with route-map Make sure that we don't set communities from a random RIB route when originating the default route. Signed-off-by: Igor Ryzhov --- diff --git a/tests/topotests/bgp_default_route_route_map_match_set/test_bgp_default-originate_route-map_match_set.py b/tests/topotests/bgp_default_route_route_map_match_set/test_bgp_default-originate_route-map_match_set.py index 27451ec7b3..c890b0d7dc 100644 --- a/tests/topotests/bgp_default_route_route_map_match_set/test_bgp_default-originate_route-map_match_set.py +++ b/tests/topotests/bgp_default_route_route_map_match_set/test_bgp_default-originate_route-map_match_set.py @@ -92,7 +92,13 @@ def test_bgp_default_originate_route_map(): def _bgp_default_route_has_metric(router): output = json.loads(router.vtysh_cmd("show ip bgp 0.0.0.0/0 json")) expected = { - "paths": [{"aspath": {"string": "65000 65000 65000 65000"}, "metric": 123}] + "paths": [ + { + "aspath": {"string": "65000 65000 65000 65000"}, + "metric": 123, + "community": None, + } + ] } return topotest.json_cmp(output, expected)