mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-08 01:47:29 +00:00
lib: fix checking of clients subscribed to receive default routes
In these two functions, we were using VRF_DEFAULT instead of the VRF ID passed as a parameter when checking if the given client subscribed to receive default routes or not. This prevented the "default-originate" command from ospfd/isisd from working correctly under specific circumstances. Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
This commit is contained in:
parent
f20b478ef3
commit
d763789879
@ -457,8 +457,7 @@ void zclient_send_reg_requests(struct zclient *zclient, vrf_id_t vrf_id)
|
|||||||
vrf_id);
|
vrf_id);
|
||||||
|
|
||||||
/* If default information is needed. */
|
/* If default information is needed. */
|
||||||
if (vrf_bitmap_check(zclient->default_information[afi],
|
if (vrf_bitmap_check(zclient->default_information[afi], vrf_id))
|
||||||
VRF_DEFAULT))
|
|
||||||
zebra_redistribute_default_send(
|
zebra_redistribute_default_send(
|
||||||
ZEBRA_REDISTRIBUTE_DEFAULT_ADD, zclient, afi,
|
ZEBRA_REDISTRIBUTE_DEFAULT_ADD, zclient, afi,
|
||||||
vrf_id);
|
vrf_id);
|
||||||
@ -525,8 +524,7 @@ void zclient_send_dereg_requests(struct zclient *zclient, vrf_id_t vrf_id)
|
|||||||
i, 0, vrf_id);
|
i, 0, vrf_id);
|
||||||
|
|
||||||
/* If default information is needed. */
|
/* If default information is needed. */
|
||||||
if (vrf_bitmap_check(zclient->default_information[afi],
|
if (vrf_bitmap_check(zclient->default_information[afi], vrf_id))
|
||||||
VRF_DEFAULT))
|
|
||||||
zebra_redistribute_default_send(
|
zebra_redistribute_default_send(
|
||||||
ZEBRA_REDISTRIBUTE_DEFAULT_DELETE, zclient, afi,
|
ZEBRA_REDISTRIBUTE_DEFAULT_DELETE, zclient, afi,
|
||||||
vrf_id);
|
vrf_id);
|
||||||
|
Loading…
Reference in New Issue
Block a user