diff options
| author | Carmine Scarpitta <cscarpit@cisco.com> | 2024-09-15 18:54:55 +0200 | 
|---|---|---|
| committer | Carmine Scarpitta <cscarpit@cisco.com> | 2024-10-23 17:34:09 +0200 | 
| commit | ee0256583f0000f5f8eca169b3a034f20aec5f4b (patch) | |
| tree | f1f8963e8772370e7ed67f8574a9e47a0b47f832 /bgpd/bgp_mplsvpn.c | |
| parent | 6e57953b4b9a18508384ce386166f18bf5f29ec8 (diff) | |
bgpd: Include structure when installing End.DT46 SID
Include SID structure information when installing an SRv6 End.DT46 SID
in the forwarding plane.
Signed-off-by: Carmine Scarpitta <cscarpit@cisco.com>
Diffstat (limited to 'bgpd/bgp_mplsvpn.c')
| -rw-r--r-- | bgpd/bgp_mplsvpn.c | 6 | 
1 files changed, 6 insertions, 0 deletions
diff --git a/bgpd/bgp_mplsvpn.c b/bgpd/bgp_mplsvpn.c index 0a4c42e315..75a8c4eeb7 100644 --- a/bgpd/bgp_mplsvpn.c +++ b/bgpd/bgp_mplsvpn.c @@ -438,6 +438,12 @@ void vpn_leak_zebra_vrf_sid_update_per_vrf(struct bgp *bgp)  	if (!vrf)  		return; +	if (bgp->tovpn_sid_locator) { +		ctx.block_len = bgp->tovpn_sid_locator->block_bits_length; +		ctx.node_len = bgp->tovpn_sid_locator->node_bits_length; +		ctx.function_len = bgp->tovpn_sid_locator->function_bits_length; +		ctx.argument_len = bgp->tovpn_sid_locator->argument_bits_length; +	}  	ctx.table = vrf->data.l.table_id;  	act = ZEBRA_SEG6_LOCAL_ACTION_END_DT46;  	zclient_send_localsid(zclient, tovpn_sid, bgp->vrf_id, act, &ctx);  | 
