From 4679eb0066eb629a845291ae166917bcda506f64 Mon Sep 17 00:00:00 2001 From: Carmine Scarpitta Date: Thu, 20 Feb 2025 11:42:21 +0100 Subject: [PATCH] staticd: Send SRv6 encapsulation to zebra 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 --- staticd/static_zebra.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/staticd/static_zebra.c b/staticd/static_zebra.c index cc09b42836..706635335f 100644 --- a/staticd/static_zebra.c +++ b/staticd/static_zebra.c @@ -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++; } -- 2.39.5