diff options
| author | Philippe Guibert <philippe.guibert@6wind.com> | 2023-12-17 21:04:31 +0100 |
|---|---|---|
| committer | Philippe Guibert <philippe.guibert@6wind.com> | 2024-06-10 12:13:56 +0200 |
| commit | 49bc1b6c21e8da0da82746373a7257aeb2c9fa4a (patch) | |
| tree | 02fc1a0241a5fa66a505b87778ad4c41cde82300 | |
| parent | f0bf36d2e6a01d58e0517be7fa73a58115f9380b (diff) | |
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 <philippe.guibert@6wind.com>
| -rw-r--r-- | lib/zclient.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/zclient.c b/lib/zclient.c index c5b1e72380..1aab7b48ba 100644 --- a/lib/zclient.c +++ b/lib/zclient.c @@ -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); |
