diff options
| author | Carmine Scarpitta <carmine.scarpitta@uniroma2.it> | 2022-07-23 18:12:23 +0200 |
|---|---|---|
| committer | Carmine Scarpitta <carmine.scarpitta@uniroma2.it> | 2022-10-18 16:08:23 +0200 |
| commit | 6c2e67be73f7619f52fd5250b7615a84250a2ae4 (patch) | |
| tree | ed0382b9f56a8673e582ab81447bdc834badba04 /sharpd | |
| parent | 9f5d4430b8f46a3141da90590921c7b8b433e349 (diff) | |
sharpd: add support for SRv6 End.DT46 behavior
This commit adds the support for SRv6 End.DT46 behavior to SHARPD.
Signed-off-by: Carmine Scarpitta <carmine.scarpitta@uniroma2.it>
Diffstat (limited to 'sharpd')
| -rw-r--r-- | sharpd/sharp_vty.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/sharpd/sharp_vty.c b/sharpd/sharp_vty.c index 9b900fccd2..ba2e599a5b 100644 --- a/sharpd/sharp_vty.c +++ b/sharpd/sharp_vty.c @@ -432,7 +432,8 @@ DEFPY (install_seg6local_routes, 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_DT4$seg6l_enddt4 (1-4294967295)$seg6l_enddt4_table>\ + End_DT4$seg6l_enddt4 (1-4294967295)$seg6l_enddt4_table|\ + End_DT46$seg6l_enddt46 (1-4294967295)$seg6l_enddt46_table>\ (1-1000000)$routes [repeat (2-1000)$rpt]", "Sharp routing Protocol\n" "install some routes\n" @@ -453,6 +454,8 @@ DEFPY (install_seg6local_routes, "Redirect table id to use\n" "SRv6 End.DT4 function to use\n" "Redirect table id to use\n" + "SRv6 End.DT46 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") @@ -508,6 +511,9 @@ DEFPY (install_seg6local_routes, } else if (seg6l_enddt4) { action = ZEBRA_SEG6_LOCAL_ACTION_END_DT4; ctx.table = seg6l_enddt4_table; + } else if (seg6l_enddt46) { + action = ZEBRA_SEG6_LOCAL_ACTION_END_DT46; + ctx.table = seg6l_enddt46_table; } else { action = ZEBRA_SEG6_LOCAL_ACTION_END; } |
