mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-05 10:08:41 +00:00
ospfd: Fix MI redistribution
If we are attempting to redistribute from a MI ospf then when should only check for the non MI case if instance was not passed in. Ticket: CM-9543 Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com> Reviewed-by: Daniel Walton <dwalton@cumulusnetworks.com>
This commit is contained in:
parent
4d833e556a
commit
53785cfdbf
@ -747,7 +747,7 @@ ospf_is_type_redistributed (int type, u_short instance)
|
|||||||
return (DEFAULT_ROUTE_TYPE (type) ?
|
return (DEFAULT_ROUTE_TYPE (type) ?
|
||||||
vrf_bitmap_check (zclient->default_information, VRF_DEFAULT) :
|
vrf_bitmap_check (zclient->default_information, VRF_DEFAULT) :
|
||||||
((instance && redist_check_instance(&zclient->mi_redist[AFI_IP][type], instance))
|
((instance && redist_check_instance(&zclient->mi_redist[AFI_IP][type], instance))
|
||||||
|| vrf_bitmap_check (zclient->redist[AFI_IP][type], VRF_DEFAULT)));
|
|| (!instance && vrf_bitmap_check (zclient->redist[AFI_IP][type], VRF_DEFAULT))));
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
|
Loading…
Reference in New Issue
Block a user