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:
Donald Sharp 2016-03-01 10:03:19 -05:00
parent 4d833e556a
commit 53785cfdbf

View File

@ -747,7 +747,7 @@ ospf_is_type_redistributed (int type, u_short instance)
return (DEFAULT_ROUTE_TYPE (type) ?
vrf_bitmap_check (zclient->default_information, VRF_DEFAULT) :
((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