Skip to content

Commit

Permalink
Merge pull request #4014 from dslicenc/zclient-interface-add
Browse files Browse the repository at this point in the history
lib: zclient provide interface info during reg_requests
  • Loading branch information
rwestphal authored Mar 29, 2019
2 parents 3645695 + eeb2dfa commit add682b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/zclient.c
Original file line number Diff line number Diff line change
Expand Up @@ -414,6 +414,9 @@ void zclient_send_reg_requests(struct zclient *zclient, vrf_id_t vrf_id)
/* We need router-id information. */
zebra_message_send(zclient, ZEBRA_ROUTER_ID_ADD, vrf_id);

/* We need interface information. */
zebra_message_send(zclient, ZEBRA_INTERFACE_ADD, vrf_id);

/* Set unwanted redistribute route. */
for (afi = AFI_IP; afi < AFI_MAX; afi++)
vrf_bitmap_set(zclient->redist[afi][zclient->redist_default],
Expand Down Expand Up @@ -478,6 +481,8 @@ void zclient_send_dereg_requests(struct zclient *zclient, vrf_id_t vrf_id)
/* We need router-id information. */
zebra_message_send(zclient, ZEBRA_ROUTER_ID_DELETE, vrf_id);

zebra_message_send(zclient, ZEBRA_INTERFACE_DELETE, vrf_id);

/* Set unwanted redistribute route. */
for (afi = AFI_IP; afi < AFI_MAX; afi++)
vrf_bitmap_unset(zclient->redist[afi][zclient->redist_default],
Expand Down

0 comments on commit add682b

Please sign in to comment.