Commit 0fedab055f for frr

commit 0fedab055f741e422ca6c746147a4f940265fca1
Author: Lincoln Thurlow <lincoln@isi.edu>
Date:   Mon Nov 30 13:21:53 2026 -0800

    tests: check the SR policy BSID follows its LSP

    When the prefix SID of a policy's first segment is removed, zebra
    frees the LSP that resolved it and withdraws the binding SID of the
    policy.

    The test now checks that the binding SID leaves rt1's MPLS table
    while the policy is down, and is installed again when the prefix SID
    returns.

    Signed-off-by: Lincoln Thurlow <lincoln@isi.edu>

diff --git a/tests/topotests/isis_sr_te_topo1/rt1/step5/show_mpls_table_bsid.ref b/tests/topotests/isis_sr_te_topo1/rt1/step5/show_mpls_table_bsid.ref
new file mode 100644
index 0000000000..16d8af0779
--- /dev/null
+++ b/tests/topotests/isis_sr_te_topo1/rt1/step5/show_mpls_table_bsid.ref
@@ -0,0 +1,6 @@
+{
+    "1111": {
+        "inLabel": 1111,
+        "installed": true
+    }
+}
diff --git a/tests/topotests/isis_sr_te_topo1/test_isis_sr_te_topo1.py b/tests/topotests/isis_sr_te_topo1/test_isis_sr_te_topo1.py
index 846391342a..9792aa9d40 100755
--- a/tests/topotests/isis_sr_te_topo1/test_isis_sr_te_topo1.py
+++ b/tests/topotests/isis_sr_te_topo1/test_isis_sr_te_topo1.py
@@ -936,6 +936,10 @@ def test_srte_route_map_with_sr_policy_reinstall_prefix_sid_check_nextop_step5()
     cmp_json_output(
         "rt1", "show ip route bgp json", "step5/show_ip_route_bgp_inactive_srte.ref"
     )
+    # zebra freed the LSP of the first label: the binding SID is withdrawn
+    cmp_json_output_doesnt(
+        "rt1", "show mpls table json", "step5/show_mpls_table_bsid.ref"
+    )

     # re-create the prefix SID and check if the SR Policy is active
     create_prefix_sid("rt5", "5.5.5.5/32", 50)
@@ -947,6 +951,7 @@ def test_srte_route_map_with_sr_policy_reinstall_prefix_sid_check_nextop_step5()
     cmp_json_output(
         "rt1", "show ip route bgp json", "step5/show_ip_route_bgp_active_srte.ref"
     )
+    cmp_json_output("rt1", "show mpls table json", "step5/show_mpls_table_bsid.ref")


 #