summaryrefslogtreecommitdiff
path: root/staticd/static_vty.c
diff options
context:
space:
mode:
Diffstat (limited to 'staticd/static_vty.c')
-rw-r--r--staticd/static_vty.c28
1 files changed, 22 insertions, 6 deletions
diff --git a/staticd/static_vty.c b/staticd/static_vty.c
index ed2805d3ea..895846a1c7 100644
--- a/staticd/static_vty.c
+++ b/staticd/static_vty.c
@@ -564,6 +564,7 @@ DEFPY_YANG(ip_route_address_interface,
|onlink$onlink \
|color (1-4294967295) \
|bfd$bfd [{multi-hop$bfd_multi_hop|source A.B.C.D$bfd_source|profile BFDPROF$bfd_profile}] \
+ |segments WORD \
}]",
NO_STR IP_STR
"Establish static routes\n"
@@ -589,7 +590,9 @@ DEFPY_YANG(ip_route_address_interface,
BFD_INTEGRATION_SOURCE_STR
BFD_INTEGRATION_SOURCEV4_STR
BFD_PROFILE_STR
- BFD_PROFILE_NAME_STR)
+ BFD_PROFILE_NAME_STR
+ "Steer this route over an SRv6 SID list\n"
+ "SRv6 SID list\n")
{
struct static_route_args args = {
.delete = !!no,
@@ -611,6 +614,7 @@ DEFPY_YANG(ip_route_address_interface,
.bfd_multi_hop = !!bfd_multi_hop,
.bfd_source = bfd_source_str,
.bfd_profile = bfd_profile,
+ .segs = segments,
};
return static_route_nb_run(vty, &args);
@@ -631,6 +635,7 @@ DEFPY_YANG(ip_route_address_interface_vrf,
|onlink$onlink \
|color (1-4294967295) \
|bfd$bfd [{multi-hop$bfd_multi_hop|source A.B.C.D$bfd_source|profile BFDPROF$bfd_profile}] \
+ |segments WORD \
}]",
NO_STR IP_STR
"Establish static routes\n"
@@ -655,7 +660,9 @@ DEFPY_YANG(ip_route_address_interface_vrf,
BFD_INTEGRATION_SOURCE_STR
BFD_INTEGRATION_SOURCEV4_STR
BFD_PROFILE_STR
- BFD_PROFILE_NAME_STR)
+ BFD_PROFILE_NAME_STR
+ "Steer this route over an SRv6 SID list\n"
+ "SRv6 SID list\n")
{
struct static_route_args args = {
.delete = !!no,
@@ -677,6 +684,7 @@ DEFPY_YANG(ip_route_address_interface_vrf,
.bfd_multi_hop = !!bfd_multi_hop,
.bfd_source = bfd_source_str,
.bfd_profile = bfd_profile,
+ .segs = segments,
};
return static_route_nb_run(vty, &args);
@@ -696,6 +704,7 @@ DEFPY_YANG(ip_route,
|nexthop-vrf NAME \
|color (1-4294967295) \
|bfd$bfd [{multi-hop$bfd_multi_hop|source A.B.C.D$bfd_source|profile BFDPROF$bfd_profile}] \
+ |segments WORD \
}]",
NO_STR IP_STR
"Establish static routes\n"
@@ -720,7 +729,9 @@ DEFPY_YANG(ip_route,
BFD_INTEGRATION_SOURCE_STR
BFD_INTEGRATION_SOURCEV4_STR
BFD_PROFILE_STR
- BFD_PROFILE_NAME_STR)
+ BFD_PROFILE_NAME_STR
+ "Steer this route over an SRv6 SID list\n"
+ "SRv6 SID list\n")
{
struct static_route_args args = {
.delete = !!no,
@@ -741,6 +752,7 @@ DEFPY_YANG(ip_route,
.bfd_multi_hop = !!bfd_multi_hop,
.bfd_source = bfd_source_str,
.bfd_profile = bfd_profile,
+ .segs = segments,
};
return static_route_nb_run(vty, &args);
@@ -759,6 +771,7 @@ DEFPY_YANG(ip_route_vrf,
|nexthop-vrf NAME \
|color (1-4294967295) \
|bfd$bfd [{multi-hop$bfd_multi_hop|source A.B.C.D$bfd_source|profile BFDPROF$bfd_profile}] \
+ |segments WORD \
}]",
NO_STR IP_STR
"Establish static routes\n"
@@ -782,7 +795,9 @@ DEFPY_YANG(ip_route_vrf,
BFD_INTEGRATION_SOURCE_STR
BFD_INTEGRATION_SOURCEV4_STR
BFD_PROFILE_STR
- BFD_PROFILE_NAME_STR)
+ BFD_PROFILE_NAME_STR
+ "Steer this route over an SRv6 SID list\n"
+ "SRv6 SID list\n")
{
struct static_route_args args = {
.delete = !!no,
@@ -803,6 +818,7 @@ DEFPY_YANG(ip_route_vrf,
.bfd_multi_hop = !!bfd_multi_hop,
.bfd_source = bfd_source_str,
.bfd_profile = bfd_profile,
+ .segs = segments,
};
return static_route_nb_run(vty, &args);
@@ -1273,8 +1289,8 @@ DEFPY_YANG(no_srv6_sid, no_srv6_sid_cmd,
{
char xpath[XPATH_MAXLEN + 37];
- snprintf(xpath, sizeof(xpath), FRR_STATIC_SRV6_INFO_KEY_XPATH, "frr-staticd:staticd",
- "staticd", VRF_DEFAULT_NAME);
+ snprintf(xpath, sizeof(xpath), FRR_STATIC_SRV6_SID_KEY_XPATH, "frr-staticd:staticd",
+ "staticd", VRF_DEFAULT_NAME, sid_str);
nb_cli_enqueue_change(vty, xpath, NB_OP_DESTROY, NULL);