mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-05-27 23:59:32 +00:00
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 <iryzhov@nfware.com>
This commit is contained in:
parent
ab798674c0
commit
68d4b72ff3
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user