From 887133ce7fc6e61a53ceaefaadabe252451c22c0 Mon Sep 17 00:00:00 2001 From: Philippe Guibert Date: Sun, 17 Dec 2023 21:04:31 +0100 Subject: [PATCH] lib: fix copy srte_color from zapi_nexthop structure When passing from nexthop to zapi_nexthop, the srte color is copied. Do the same reversely. Fixes: 31f937fb43f4 ("lib, zebra: Add SR-TE policy infrastructure to zebra") Signed-off-by: Philippe Guibert --- lib/zclient.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/zclient.c b/lib/zclient.c index ce4248e457c5..a4b0e5207d40 100644 --- a/lib/zclient.c +++ b/lib/zclient.c @@ -2173,6 +2173,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);