diff options
| author | Carmine Scarpitta <cscarpit@cisco.com> | 2025-02-27 12:12:39 +0100 |
|---|---|---|
| committer | Carmine Scarpitta <cscarpit@cisco.com> | 2025-02-27 12:17:26 +0100 |
| commit | 96134d196490c304b3b78487b06f0d34ce488651 (patch) | |
| tree | 107537f541abe29dacd9c596df531ad019a88bf4 /vtysh/vtysh.c | |
| parent | ab7a7541a669ebe586d8de8015e7eb68c0365c2b (diff) | |
vtysh: Add `no static-sids` command
Previous commits introduced the `no` form for the `static-sids` command.
This change allow users to remove all static SIDs at once.
This commit makes the `no static-sids` command available in vtysh.
```
router# config
router(config)# segment-routing
router(sr)# srv6
router(srv6)# no static-sids
```
Signed-off-by: Carmine Scarpitta <cscarpit@cisco.com>
Diffstat (limited to 'vtysh/vtysh.c')
| -rw-r--r-- | vtysh/vtysh.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/vtysh/vtysh.c b/vtysh/vtysh.c index 0559e89f92..31e7ce12ba 100644 --- a/vtysh/vtysh.c +++ b/vtysh/vtysh.c @@ -1708,6 +1708,14 @@ DEFUNSH(VTYSH_MGMTD, srv6_sids, srv6_sids_cmd, return CMD_SUCCESS; } +DEFUNSH(VTYSH_MGMTD, no_srv6_sids, no_srv6_sids_cmd, + "no static-sids", + NO_STR + "Segment-Routing SRv6 SIDs configuration\n") +{ + return CMD_SUCCESS; +} + DEFUNSH(VTYSH_ZEBRA, srv6_locators, srv6_locators_cmd, "locators", "Segment-Routing SRv6 locators configuration\n") @@ -5543,6 +5551,7 @@ void vtysh_init_vty(void) install_element(SRV6_NODE, &vtysh_end_all_cmd); install_element(SRV6_NODE, &srv6_encap_cmd); install_element(SRV6_NODE, &srv6_sids_cmd); + install_element(SRV6_NODE, &no_srv6_sids_cmd); install_element(SRV6_SIDS_NODE, &exit_srv6_sids_config_cmd); install_element(SRV6_SIDS_NODE, &vtysh_end_all_cmd); |
