diff options
| author | Donald Sharp <sharpd@nvidia.com> | 2022-10-24 09:49:40 -0400 |
|---|---|---|
| committer | Donald Sharp <sharpd@nvidia.com> | 2022-11-04 13:34:27 -0400 |
| commit | ca2b3467830877ca279a7bad6d8c2d162fa45e8e (patch) | |
| tree | a8fff8d87c37c95bf2dc1f002ee945222de31525 /sharpd/sharp_zebra.c | |
| parent | f3c6dd49f47d4d092a43d55d4af87521a323b3ae (diff) | |
*: Add ability to encode / decode resilence down zapi
At this point add abilty for the encode/decode of the
resilience down ZAPI to zebra. Just hookup sharpd
at this point in time.
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'sharpd/sharp_zebra.c')
| -rw-r--r-- | sharpd/sharp_zebra.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sharpd/sharp_zebra.c b/sharpd/sharp_zebra.c index b40c2c6228..9d343576d6 100644 --- a/sharpd/sharp_zebra.c +++ b/sharpd/sharp_zebra.c @@ -550,6 +550,9 @@ void nhg_add(uint32_t id, const struct nexthop_group *nhg, bool is_valid = true; api_nhg.id = id; + + api_nhg.resilience = nhg->nhgr; + for (ALL_NEXTHOPS_PTR(nhg, nh)) { if (api_nhg.nexthop_num >= MULTIPATH_NUM) { zlog_warn( |
