diff options
Diffstat (limited to 'zebra/zapi_msg.c')
| -rw-r--r-- | zebra/zapi_msg.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/zebra/zapi_msg.c b/zebra/zapi_msg.c index 583f1b7d54..85eb6b3451 100644 --- a/zebra/zapi_msg.c +++ b/zebra/zapi_msg.c @@ -232,11 +232,6 @@ int zsend_interface_link_params(struct zserv *client, struct interface *ifp) { struct stream *s = stream_new(ZEBRA_MAX_PACKET_SIZ); - if (!ifp->link_params) { - stream_free(s); - return 0; - } - zclient_create_header(s, ZEBRA_INTERFACE_LINK_PARAMS, ifp->vrf->vrf_id); /* Add Interface Index */ @@ -1879,6 +1874,10 @@ static int zapi_nhg_decode(struct stream *s, int cmd, struct zapi_nhg *api_nhg) if (cmd == ZEBRA_NHG_DEL) goto done; + STREAM_GETW(s, api_nhg->resilience.buckets); + STREAM_GETL(s, api_nhg->resilience.idle_timer); + STREAM_GETL(s, api_nhg->resilience.unbalanced_timer); + /* Nexthops */ STREAM_GETW(s, api_nhg->nexthop_num); @@ -2003,6 +2002,8 @@ static void zread_nhg_add(ZAPI_HANDLER_ARGS) nhe->nhg.nexthop = nhg->nexthop; nhg->nexthop = NULL; + nhe->nhg.nhgr = api_nhg.resilience; + if (bnhg) { nhe->backup_info = bnhg; bnhg = NULL; |
