mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-05 16:57:44 +00:00
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:31f937fb43
("lib, zebra: Add SR-TE policy infrastructure to zebra") Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com> (cherry picked from commit49bc1b6c21
)
This commit is contained in:
parent
d35614a95d
commit
59e8c67fd0
@ -2163,6 +2163,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);
|
||||
|
Loading…
Reference in New Issue
Block a user