]> git.puffer.fish Git - mirror/frr.git/commitdiff
tests: add one more check for default-originate with route-map 9586/head
authorIgor Ryzhov <iryzhov@nfware.com>
Wed, 8 Sep 2021 18:10:12 +0000 (21:10 +0300)
committerIgor Ryzhov <iryzhov@nfware.com>
Wed, 8 Sep 2021 20:37:50 +0000 (23:37 +0300)
Make sure that we don't set communities from a random RIB route when
originating the default route.

Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
tests/topotests/bgp_default_route_route_map_match_set/test_bgp_default-originate_route-map_match_set.py

index 27451ec7b37d0e953f62c8017b2d016c48b58a2f..c890b0d7dcf9ca6681d0509a9cabbd45397df01c 100644 (file)
@@ -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)