]> git.puffer.fish Git - mirror/frr.git/commitdiff
topotests: Router deletion in SRv6 sid reachability 17913/head
authorMikhail Sokolovskiy <sokolmish@gmail.com>
Wed, 29 Jan 2025 22:54:47 +0000 (01:54 +0300)
committerMikhail Sokolovskiy <sokolmish@gmail.com>
Wed, 29 Jan 2025 22:54:47 +0000 (01:54 +0300)
Signed-off-by: Mikhail Sokolovskiy <sokolmish@gmail.com>
tests/topotests/bgp_srv6_sid_reachability/test_bgp_srv6_sid_reachability.py

index cf590ad01dba484dbd798a3b026f36bb5d2c872c..5c0b909517213679044e089ff95d83de4fce7dcf 100755 (executable)
@@ -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))