summaryrefslogtreecommitdiffstats
path: root/sharpd
diff options
context:
space:
mode:
authorRuss White <russ@riw.us>2022-02-08 14:30:02 +0100
committerGitHub <noreply@github.com>2022-02-08 14:30:02 +0100
commite735c8073c70abddab09f8600b551df7f630809e (patch)
treec6633385ede3e143af1b353a150a1b1e8cd50433 /sharpd
parentMerge pull request #10417 from Orange-OpenSource/TE (diff)
parenttests: add linebreak to follow Python code style (diff)
downloadfrr-e735c8073c70abddab09f8600b551df7f630809e.tar.xz
frr-e735c8073c70abddab09f8600b551df7f630809e.zip
Merge pull request #9649 from proelbtn/add-support-for-end-dt4
add support for SRv6 IPv4 L3VPN
Diffstat (limited to 'sharpd')
-rw-r--r--sharpd/sharp_vty.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/sharpd/sharp_vty.c b/sharpd/sharp_vty.c
index e1ad5dcec..ceed9cf73 100644
--- a/sharpd/sharp_vty.c
+++ b/sharpd/sharp_vty.c
@@ -427,7 +427,8 @@ DEFPY (install_seg6local_routes,
End_X$seg6l_endx X:X::X:X$seg6l_endx_nh6|\
End_T$seg6l_endt (1-4294967295)$seg6l_endt_table|\
End_DX4$seg6l_enddx4 A.B.C.D$seg6l_enddx4_nh4|\
- End_DT6$seg6l_enddt6 (1-4294967295)$seg6l_enddt6_table>\
+ End_DT6$seg6l_enddt6 (1-4294967295)$seg6l_enddt6_table|\
+ End_DT4$seg6l_enddt4 (1-4294967295)$seg6l_enddt4_table>\
(1-1000000)$routes [repeat (2-1000)$rpt]",
"Sharp routing Protocol\n"
"install some routes\n"
@@ -446,6 +447,8 @@ DEFPY (install_seg6local_routes,
"V4 Nexthop address to use\n"
"SRv6 End.DT6 function to use\n"
"Redirect table id to use\n"
+ "SRv6 End.DT4 function to use\n"
+ "Redirect table id to use\n"
"How many to create\n"
"Should we repeat this command\n"
"How many times to repeat this command\n")
@@ -496,6 +499,9 @@ DEFPY (install_seg6local_routes,
} else if (seg6l_enddt6) {
action = ZEBRA_SEG6_LOCAL_ACTION_END_DT6;
ctx.table = seg6l_enddt6_table;
+ } else if (seg6l_enddt4) {
+ action = ZEBRA_SEG6_LOCAL_ACTION_END_DT4;
+ ctx.table = seg6l_enddt4_table;
} else {
action = ZEBRA_SEG6_LOCAL_ACTION_END;
}