diff options
| author | Ryoga Saito <contact@proelbtn.com> | 2021-11-22 22:54:44 +0900 | 
|---|---|---|
| committer | Ryoga Saito <contact@proelbtn.com> | 2021-11-22 23:32:37 +0900 | 
| commit | 478d592ed704c9516ecd3036123ebc1c7b879bf5 (patch) | |
| tree | b3b11cecc1b892b11caa33abdbe3edad623b19f1 /sharpd/sharp_vty.c | |
| parent | 7eab60a793c1e4835c4c7eca227aca1bf45e63bc (diff) | |
sharpd: add support for End.DT4
This patch enables sharpd to insert End.DT4 routes into zebra.
Signed-off-by: Ryoga Saito <ryoga.saito@linecorp.com>
Diffstat (limited to 'sharpd/sharp_vty.c')
| -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 b6581cd9e6..34629b929f 100644 --- a/sharpd/sharp_vty.c +++ b/sharpd/sharp_vty.c @@ -425,7 +425,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" @@ -444,6 +445,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") @@ -494,6 +497,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;  	}  | 
