Commit 93de1b40a0 for frr

commit 93de1b40a08a918d4ea5b8ca9c3f245beb390c6c
Author: Philippe Guibert <philippe.guibert@6wind.com>
Date:   Wed Oct 21 15:45:07 2026 +0200

    topotests: bgp_srv6_unicast, check neighbor encapsulation applied again

    Add a test that applies again the 'neighbor encapsulation-srv6' and
    'neighbor encapsulation-srv6-relax' configuration of r1, as when the
    configuration file is loaded again, for instance after a daemon restart.
    The commands must be accepted without error.

    Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>

diff --git a/tests/topotests/bgp_srv6_unicast/test_bgp_srv6_unicast.py b/tests/topotests/bgp_srv6_unicast/test_bgp_srv6_unicast.py
index 07d0c3b8a6..78ac372ce0 100644
--- a/tests/topotests/bgp_srv6_unicast/test_bgp_srv6_unicast.py
+++ b/tests/topotests/bgp_srv6_unicast/test_bgp_srv6_unicast.py
@@ -193,6 +193,37 @@ def test_bgp_srv6_encap():



+def test_bgp_srv6_neighbor_encapsulation_reapply():
+    """
+    Apply again the 'neighbor encapsulation-srv6' and 'neighbor
+    encapsulation-srv6-relax' configuration of r1, as when the configuration
+    file is loaded again. The commands must be accepted without error.
+    """
+    tgen = get_topogen()
+
+    if tgen.routers_have_failure():
+        pytest.skip(tgen.errors)
+
+    r1 = tgen.gears["r1"]
+
+    r1.vtysh_multicmd(
+        """
+        router bgp 65001
+         address-family ipv4 unicast
+          neighbor fd00:0:0:3::2 encapsulation-srv6
+          neighbor fd00:0:0:2::2 encapsulation-srv6-relax
+         exit-address-family
+         address-family ipv6 unicast
+          neighbor fd00:0:0:2::2 encapsulation-srv6-relax
+          neighbor fd00:0:0:3::2 encapsulation-srv6
+         exit-address-family
+        """,
+        pretty_output=False,
+        daemon="bgpd",
+        raises=True,
+    )
+
+
 def test_bgp_srv6_update1():
     """
     Configure a static prefix 10.0.0.2/32 on R2: