Commit d694ce81a2 for frr
commit d694ce81a2f51f2da898e5f3ca3d54eae7b96df3
Author: Rajasekar Raja <rajasekarr@nvidia.com>
Date: Mon Oct 19 21:16:44 2026 -0700
zebra: fix no explicit not resetting the uncompressed-f4024 range
Running "no explicit" under "format uncompressed-f4024" leaves the
configured explicit range in place, and the running config still
shows it. The default is written to the uSID explicit
wide-local-id-block field instead of the uncompressed explicit start.
The format config is a union and these two fields do not overlap, so
the configured value is never reset.
Write the default to the uncompressed explicit start, as "no format
uncompressed-f4024" already does. This has been wrong since commit
51d3cd8a007d ("zebra: CLI to override default SID format config").
Signed-off-by: Rajasekar Raja <rajasekarr@nvidia.com>
diff --git a/zebra/zebra_srv6_vty.c b/zebra/zebra_srv6_vty.c
index 531c092852..31abffe8af 100644
--- a/zebra/zebra_srv6_vty.c
+++ b/zebra/zebra_srv6_vty.c
@@ -1567,7 +1567,7 @@ DEFPY(no_srv6_sid_format_explicit,
VTY_DECLVAR_CONTEXT(srv6_sid_format, format);
if (strmatch(format->name, SRV6_SID_FORMAT_UNCOMPRESSED_F4024_NAME))
- format->config.usid.ewlib_start =
+ format->config.uncompressed.explicit_start =
SRV6_SID_FORMAT_UNCOMPRESSED_F4024_EXPLICIT_RANGE_START;
else
assert(0);