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 /lib/zclient.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 'lib/zclient.c')
| -rw-r--r-- | lib/zclient.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/zclient.c b/lib/zclient.c index 4a553f4718..2517773dc4 100644 --- a/lib/zclient.c +++ b/lib/zclient.c @@ -1166,6 +1166,10 @@ static int zapi_nhg_encode(struct stream *s, int cmd, struct zapi_nhg *api_nhg) stream_putw(s, api_nhg->proto); stream_putl(s, api_nhg->id); + stream_putw(s, api_nhg->resilience.buckets); + stream_putl(s, api_nhg->resilience.idle_timer); + stream_putl(s, api_nhg->resilience.unbalanced_timer); + if (cmd == ZEBRA_NHG_ADD) { /* Nexthops */ zapi_nexthop_group_sort(api_nhg->nexthops, |
