Merge pull request #16203 from FRRouting/mergify/bp/stable/10.0/pr-16191

lib: fix copy srte_color from zapi_nexthop structure (backport #16191)
This commit is contained in:
Donatas Abraitis 2024-06-14 15:31:52 +03:00 committed by GitHub
commit 84bbd169d9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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);