]> git.puffer.fish Git - matthieu/frr.git/commitdiff
bgpd: Include structure when installing End.DT46 SID
authorCarmine Scarpitta <cscarpit@cisco.com>
Sun, 15 Sep 2024 16:54:55 +0000 (18:54 +0200)
committerCarmine Scarpitta <cscarpit@cisco.com>
Wed, 23 Oct 2024 15:34:09 +0000 (17:34 +0200)
Include SID structure information when installing an SRv6 End.DT46 SID
in the forwarding plane.

Signed-off-by: Carmine Scarpitta <cscarpit@cisco.com>
bgpd/bgp_mplsvpn.c

index 0a4c42e31588cfe2a50917948369c75383dd06db..75a8c4eeb7e3659c06f7c62f2ae4d07252a7923f 100644 (file)
@@ -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);