]> git.puffer.fish Git - mirror/frr.git/commitdiff
staticd: Send SRv6 encapsulation to zebra
authorCarmine Scarpitta <cscarpit@cisco.com>
Thu, 20 Feb 2025 10:42:21 +0000 (11:42 +0100)
committerCarmine Scarpitta <cscarpit@cisco.com>
Wed, 30 Apr 2025 16:54:43 +0000 (16:54 +0000)
This commit updates staticd to include the encapsulation behavior in
the ZAPI message sent to Zebra for installing the SRv6 route.

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

index cc09b428365fdc56e9210c21532fb751f077f289..706635335fd8a3e6c93b7403b3068fb22fc7da53 100644 (file)
@@ -534,6 +534,8 @@ extern void static_zebra_route_add(struct static_path *pn, bool install)
                                memcpy(&api_nh->seg6_segs[i],
                                       &nh->snh_seg.seg[i],
                                       sizeof(struct in6_addr));
+
+                       api_nh->srv6_encap_behavior = nh->snh_seg.encap_behavior;
                }
                nh_num++;
        }