mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-07-27 10:04:18 +00:00
bgpd: Include structure when installing End.DT4/6 SID
Include SID structure information when installing an SRv6 End.DT6 or End.DT4 SID in the forwarding plane. Signed-off-by: Carmine Scarpitta <cscarpit@cisco.com>
This commit is contained in:
parent
ddaf2a7e9b
commit
7669e2784d
@ -381,6 +381,12 @@ void vpn_leak_zebra_vrf_sid_update_per_af(struct bgp *bgp, afi_t afi)
|
||||
if (!vrf)
|
||||
return;
|
||||
|
||||
if (bgp->vpn_policy[afi].tovpn_sid_locator) {
|
||||
ctx.block_len = bgp->vpn_policy[afi].tovpn_sid_locator->block_bits_length;
|
||||
ctx.node_len = bgp->vpn_policy[afi].tovpn_sid_locator->node_bits_length;
|
||||
ctx.function_len = bgp->vpn_policy[afi].tovpn_sid_locator->function_bits_length;
|
||||
ctx.argument_len = bgp->vpn_policy[afi].tovpn_sid_locator->argument_bits_length;
|
||||
}
|
||||
ctx.table = vrf->data.l.table_id;
|
||||
act = afi == AFI_IP ? ZEBRA_SEG6_LOCAL_ACTION_END_DT4
|
||||
: ZEBRA_SEG6_LOCAL_ACTION_END_DT6;
|
||||
|
Loading…
Reference in New Issue
Block a user