diff options
| author | Carmine Scarpitta <cscarpit@cisco.com> | 2025-02-03 14:52:00 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-02-03 14:52:00 +0100 |
| commit | 0768c620e088113a4e9fe9e28f5f28f4855d6476 (patch) | |
| tree | f4be7e8c5468e331eb78952c0b62522400793cf3 /tests/topotests | |
| parent | 4f43a33d421973d8229561bae7872770ea254e58 (diff) | |
| parent | 90fe717352296c9d33d89f3e30a45bd07fdeb02f (diff) | |
Merge pull request #17913 from Sokolmish/bgp-sid-release
bgpd: Release SID on router deletion
Diffstat (limited to 'tests/topotests')
| -rwxr-xr-x | tests/topotests/bgp_srv6_sid_reachability/test_bgp_srv6_sid_reachability.py | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/tests/topotests/bgp_srv6_sid_reachability/test_bgp_srv6_sid_reachability.py b/tests/topotests/bgp_srv6_sid_reachability/test_bgp_srv6_sid_reachability.py index cf590ad01d..5c0b909517 100755 --- a/tests/topotests/bgp_srv6_sid_reachability/test_bgp_srv6_sid_reachability.py +++ b/tests/topotests/bgp_srv6_sid_reachability/test_bgp_srv6_sid_reachability.py @@ -159,6 +159,36 @@ def test_sid_reachable_again_bgp_update(): check_ping("c11", "192.168.2.1", True, 10, 1) +def test_sid_unreachable_no_router(): + get_topogen().gears["r2"].vtysh_cmd( + """ + configure terminal + no router bgp 65002 vrf vrf10 + """ + ) + check_ping("c11", "192.168.2.1", False, 10, 1) + + +def test_sid_reachable_again_no_router(): + get_topogen().gears["r2"].vtysh_cmd( + """ + configure terminal + router bgp 65002 vrf vrf10 + bgp router-id 192.0.2.2 + ! + address-family ipv4 unicast + redistribute connected + sid vpn export 1 + rd vpn export 65002:10 + rt vpn both 0:10 + import vpn + export vpn + exit-address-family + """ + ) + check_ping("c11", "192.168.2.1", True, 10, 1) + + if __name__ == "__main__": args = ["-s"] + sys.argv[1:] sys.exit(pytest.main(args)) |
