summaryrefslogtreecommitdiff
path: root/tests/topotests/bgp_oad/test_bgp_oad.py
diff options
context:
space:
mode:
authorDonald Sharp <donaldsharp72@gmail.com>2024-01-11 09:07:31 -0500
committerGitHub <noreply@github.com>2024-01-11 09:07:31 -0500
commit86cbd5831e479baa717a47ba3b2d510a3c7233c2 (patch)
tree39f2257780ff445d69d962d16e7ef3f0f02e154f /tests/topotests/bgp_oad/test_bgp_oad.py
parent67e8ef293f03b2dfd52981c7d82fbc98716fa1e5 (diff)
parenta56beac98bf1c7660ad8ea3066b37e712302ba4b (diff)
Merge pull request #15128 from opensourcerouting/fix/bgp_oad_ECOMMUNITY_ORIGIN_VALIDATION_STATE
bgpd: Recent EBGP-OAD improvements
Diffstat (limited to 'tests/topotests/bgp_oad/test_bgp_oad.py')
-rw-r--r--tests/topotests/bgp_oad/test_bgp_oad.py18
1 files changed, 16 insertions, 2 deletions
diff --git a/tests/topotests/bgp_oad/test_bgp_oad.py b/tests/topotests/bgp_oad/test_bgp_oad.py
index a2e3eddc26..b26c548357 100644
--- a/tests/topotests/bgp_oad/test_bgp_oad.py
+++ b/tests/topotests/bgp_oad/test_bgp_oad.py
@@ -31,7 +31,7 @@ pytestmark = [pytest.mark.bgpd]
def setup_module(mod):
- topodef = {"s1": ("r1", "r2"), "s2": ("r2", "r3")}
+ topodef = {"s1": ("r1", "r2", "r4"), "s2": ("r2", "r3"), "s3": ("r4", "r5")}
tgen = Topogen(topodef, mod.__name__)
tgen.start_topology()
@@ -64,7 +64,21 @@ def test_bgp_dynamic_capability_role():
"aspath": {"string": "65002 65003"},
"metric": 123,
"locPrf": 123,
- }
+ "peer": {
+ "hostname": "r2",
+ "type": "external (oad)",
+ },
+ },
+ {
+ "aspath": {"string": "65004 65005"},
+ "metric": 123,
+ "locPrf": 123,
+ "bestpath": {"selectionReason": "Peer Type"},
+ "peer": {
+ "hostname": "r4",
+ "type": "external",
+ },
+ },
]
}
return topotest.json_cmp(output, expected)