Commit 283d03615b for frr
commit 283d03615bdc3d2335c8249c270068420d6f6dd9
Author: Carmine Scarpitta <cscarpit@cisco.com>
Date: Thu Sep 3 12:31:07 2026 +0200
tests: Verify advertised SRv6 SID information
Add a topotest that checks SRv6 SID information in the IS-IS database
advertisement.
Verify that an End SID using the uN PSP behavior is advertised under
the expected SRv6 Locator.
Signed-off-by: Carmine Scarpitta <cscarpit@cisco.com>
diff --git a/tests/topotests/isis_srv6_topo1/rt2/step1/show_isis_database_detail.ref b/tests/topotests/isis_srv6_topo1/rt2/step1/show_isis_database_detail.ref
new file mode 100644
index 0000000000..98b7d94ced
--- /dev/null
+++ b/tests/topotests/isis_srv6_topo1/rt2/step1/show_isis_database_detail.ref
@@ -0,0 +1,23 @@
+{
+ "areas":[
+ {
+ "levels":[
+ {
+ "lsps":[
+ {
+ "srv6Locator":{
+ "prefix":"fc00:0:1::/48",
+ "subtlvs":{
+ "srv6EndSid":{
+ "sidValue":"fc00:0:1::",
+ "endpointBehavior":"uN PSP"
+ }
+ }
+ }
+ }
+ ]
+ }
+ ]
+ }
+ ]
+}
diff --git a/tests/topotests/isis_srv6_topo1/test_isis_srv6_topo1.py b/tests/topotests/isis_srv6_topo1/test_isis_srv6_topo1.py
index ebbb4610e7..7107b5c3a6 100644
--- a/tests/topotests/isis_srv6_topo1/test_isis_srv6_topo1.py
+++ b/tests/topotests/isis_srv6_topo1/test_isis_srv6_topo1.py
@@ -290,6 +290,20 @@ def test_srv6_locator_step1():
)
+def test_srv6_sid_advertisement_step1():
+ logger.info("Test (step 1): verify advertised SRv6 SID information")
+ tgen = get_topogen()
+
+ if tgen.routers_have_failure():
+ pytest.skip(tgen.errors)
+
+ router_compare_json_output(
+ "rt2",
+ "show isis database detail json",
+ "step1/show_isis_database_detail.ref",
+ )
+
+
def test_ping_step1():
logger.info("Test (step 1): verify ping")
tgen = get_topogen()