diff options
author | Renato Westphal <renato@openbsd.org> | 2019-03-29 14:04:30 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-29 14:04:30 +0100 |
commit | add682b39bc57ff8c1fa15bbb1be018dc70cac05 (patch) | |
tree | f96c2634cb1c8936ad7bf1277707ccee9f28cbc4 /lib/zclient.c | |
parent | Merge pull request #4038 from manuhalo/fix-lu-bgp-master (diff) | |
parent | lib: zclient provide interface info during reg_requests (diff) | |
download | frr-add682b39bc57ff8c1fa15bbb1be018dc70cac05.tar.xz frr-add682b39bc57ff8c1fa15bbb1be018dc70cac05.zip |
Merge pull request #4014 from dslicenc/zclient-interface-add
lib: zclient provide interface info during reg_requests
Diffstat (limited to 'lib/zclient.c')
-rw-r--r-- | lib/zclient.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/zclient.c b/lib/zclient.c index 7b94f1d90..3e26cd9e6 100644 --- a/lib/zclient.c +++ b/lib/zclient.c @@ -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], @@ -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], |