From: Philippe Guibert Date: Sun, 17 Dec 2023 20:04:31 +0000 (+0100) Subject: lib: fix copy srte_color from zapi_nexthop structure X-Git-Tag: docker/10.0.2~45^2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=9be48cb0ec73ec7ae2a45a33b991127365125bb3;p=matthieu%2Ffrr.git lib: fix copy srte_color from zapi_nexthop structure When switching from nexthop to zapi_nexthop, the srte color is copied. Do the same in reverse. Fixes: 31f937fb43f4 ("lib, zebra: Add SR-TE policy infrastructure to zebra") Signed-off-by: Philippe Guibert (cherry picked from commit 49bc1b6c21e8da0da82746373a7257aeb2c9fa4a) --- diff --git a/lib/zclient.c b/lib/zclient.c index 51ebb56275..606ba91af3 100644 --- a/lib/zclient.c +++ b/lib/zclient.c @@ -2171,6 +2171,7 @@ int zapi_nexthop_from_nexthop(struct zapi_nexthop *znh, znh->weight = nh->weight; znh->ifindex = nh->ifindex; znh->gate = nh->gate; + znh->srte_color = nh->srte_color; if (CHECK_FLAG(nh->flags, NEXTHOP_FLAG_ONLINK)) SET_FLAG(znh->flags, ZAPI_NEXTHOP_FLAG_ONLINK);