staticd: Extend CLI to unconfigure an SRv6 uA SID

This commit extends the STATIC CLI to support the deletion of uA SIDs.

```
router(config)# no sid fcbb:bbbb:1:fe00::/64 locator MAIN behavior uA interface sr0 nexthop 2001::2
```

Signed-off-by: Carmine Scarpitta <cscarpit@cisco.com>
This commit is contained in:
Carmine Scarpitta 2025-02-13 11:04:14 +01:00
parent 70c039baa8
commit f2fcdaad3a

View File

@ -1295,7 +1295,7 @@ DEFPY_YANG(srv6_sid, srv6_sid_cmd,
} }
DEFPY_YANG(no_srv6_sid, no_srv6_sid_cmd, DEFPY_YANG(no_srv6_sid, no_srv6_sid_cmd,
"no sid X:X::X:X/M [locator NAME$locator_name] [behavior <uN | uDT6 vrf VIEWVRFNAME | uDT4 vrf VIEWVRFNAME | uDT46 vrf VIEWVRFNAME>]", "no sid X:X::X:X/M [locator NAME$locator_name] [behavior <uN | uA interface INTERFACE$interface [nexthop X:X::X:X$nh6] | uDT6 vrf VIEWVRFNAME | uDT4 vrf VIEWVRFNAME | uDT46 vrf VIEWVRFNAME>]",
NO_STR NO_STR
"Configure SRv6 SID\n" "Configure SRv6 SID\n"
"Specify SRv6 SID\n" "Specify SRv6 SID\n"
@ -1303,6 +1303,11 @@ DEFPY_YANG(no_srv6_sid, no_srv6_sid_cmd,
"Specify Locator name\n" "Specify Locator name\n"
"Specify SRv6 SID behavior\n" "Specify SRv6 SID behavior\n"
"Apply the code to a uN SID\n" "Apply the code to a uN SID\n"
"Behavior uA\n"
"Configure the interface\n"
"Interface name\n"
"Configure the nexthop\n"
"IPv6 address of the nexthop\n"
"Apply the code to an uDT6 SID\n" "Apply the code to an uDT6 SID\n"
"Configure VRF name\n" "Configure VRF name\n"
"Specify VRF name\n" "Specify VRF name\n"