]> git.puffer.fish Git - matthieu/frr.git/commitdiff
lib: fix copy srte_color from zapi_nexthop structure
authorPhilippe Guibert <philippe.guibert@6wind.com>
Sun, 17 Dec 2023 20:04:31 +0000 (21:04 +0100)
committerPhilippe Guibert <philippe.guibert@6wind.com>
Mon, 10 Jun 2024 10:13:56 +0000 (12:13 +0200)
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 <philippe.guibert@6wind.com>
lib/zclient.c

index c5b1e72380ca3dbe3cf55f55d608cbc077c34e39..1aab7b48ba8f4187dd22311d08c7c2f82753111e 100644 (file)
@@ -2174,6 +2174,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);