diff options
| author | Mark Stapp <mjs.ietf@gmail.com> | 2025-02-05 07:52:51 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-02-05 07:52:51 -0500 |
| commit | a23b92a8b033a92628277df689920524f15337a4 (patch) | |
| tree | 39ec9e8976cc661c6d56e27b9d8bbef1bfda6305 /tests/topotests/bgp_oad/test_bgp_oad.py | |
| parent | 18201a2c3bf9c69624d9fd1693c42537fe06a297 (diff) | |
| parent | f950fff2f519215414175092a948f500c8980395 (diff) | |
Merge pull request #18024 from opensourcerouting/fix/revert_a73b0f88c7715bfcf5dc8ffd46d2fd0bbc9a8aff
Fix 10.0 branch
Diffstat (limited to 'tests/topotests/bgp_oad/test_bgp_oad.py')
| -rw-r--r-- | tests/topotests/bgp_oad/test_bgp_oad.py | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/tests/topotests/bgp_oad/test_bgp_oad.py b/tests/topotests/bgp_oad/test_bgp_oad.py index 9c00422f7d..c21b3793c3 100644 --- a/tests/topotests/bgp_oad/test_bgp_oad.py +++ b/tests/topotests/bgp_oad/test_bgp_oad.py @@ -60,7 +60,6 @@ def test_bgp_dynamic_capability_role(): r2 = tgen.gears["r2"] r3 = tgen.gears["r3"] r4 = tgen.gears["r4"] - r5 = tgen.gears["r5"] def _bgp_converge(): output = json.loads(r1.vtysh_cmd("show bgp ipv4 unicast 10.10.10.10/32 json")) @@ -126,38 +125,6 @@ def test_bgp_dynamic_capability_role(): _, result = topotest.run_and_expect(test_func, None, count=30, wait=1) assert result is None, "10.10.10.1/32 should not be advertised to r4 (not OAD peer)" - def _bgp_check_non_transitive_extended_community( - router, arg={"string": "LB:65003:12500000 (100.000 Mbps)"} - ): - output = json.loads( - router.vtysh_cmd("show bgp ipv4 unicast 10.10.10.20/32 json") - ) - expected = { - "paths": [ - { - "extendedCommunity": arg, - } - ] - } - return topotest.json_cmp(output, expected) - - test_func = functools.partial( - _bgp_check_non_transitive_extended_community, - r4, - ) - _, result = topotest.run_and_expect(test_func, None, count=30, wait=1) - assert ( - result is None - ), "10.10.10.20/32 should be received at r4 with non-transitive extended community" - - test_func = functools.partial( - _bgp_check_non_transitive_extended_community, r5, None - ) - _, result = topotest.run_and_expect(test_func, None, count=30, wait=1) - assert ( - result is None - ), "10.10.10.20/32 should NOT be received at r5 with non-transitive extended community" - if __name__ == "__main__": args = ["-s"] + sys.argv[1:] |
