Commit 94d34de548 for frr
commit 94d34de5481ff785597657b75c50b03e0955dfd1
Author: Philippe Guibert <philippe.guibert@6wind.com>
Date: Tue Nov 17 18:46:28 2026 +0100
tests: check the Wide LIB rejects a bound past 65535
Check that a Wide LIB ending past the 16-bit uSID functions is rejected
and not saved in the configuration.
Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
diff --git a/tests/topotests/srv6_sid_manager/test_srv6_sid_manager.py b/tests/topotests/srv6_sid_manager/test_srv6_sid_manager.py
index cbdac1765f..92e745acd3 100644
--- a/tests/topotests/srv6_sid_manager/test_srv6_sid_manager.py
+++ b/tests/topotests/srv6_sid_manager/test_srv6_sid_manager.py
@@ -442,7 +442,7 @@ def test_ping():
def test_usid_lib_ranges():
- """Verify uSID LIB ranges reject a start greater than the end."""
+ """Verify uSID LIB ranges reject invalid bounds."""
tgen = get_topogen()
if tgen.routers_have_failure():
@@ -466,9 +466,15 @@ format usid-f3216
)
assert "Wide LIB start (401) cannot be greater than end (400)" in output
+ output = router.vtysh_cmd(
+ format_context + "wide-local-id-block start 0 end 65536\n"
+ )
+ assert "%" in output, output
+
output = router.vtysh_cmd("write terminal")
assert "local-id-block explicit start 201 end 200" not in output
assert "wide-local-id-block start 401 end 400" not in output
+ assert "wide-local-id-block start 0 end 65536" not in output
USID_F4816_CONTEXT = """configure terminal