summaryrefslogtreecommitdiffstats
path: root/ospfd/ospf_zebra.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2016-03-01 16:03:19 +0100
committerDonald Sharp <sharpd@cumulusnetworks.com>2016-03-01 19:12:36 +0100
commit53785cfdbf699b0bb8e5dc6df6689f85c9ee5e77 (patch)
tree37010a7419abdcbc46041fffbc2cd3ee9e6aad90 /ospfd/ospf_zebra.c
parentlib, vtysh: Fix 'banner motd file' command (diff)
downloadfrr-53785cfdbf699b0bb8e5dc6df6689f85c9ee5e77.tar.xz
frr-53785cfdbf699b0bb8e5dc6df6689f85c9ee5e77.zip
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>
Diffstat (limited to 'ospfd/ospf_zebra.c')
-rw-r--r--ospfd/ospf_zebra.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ospfd/ospf_zebra.c b/ospfd/ospf_zebra.c
index 543740c67..f79d75d47 100644
--- a/ospfd/ospf_zebra.c
+++ b/ospfd/ospf_zebra.c
@@ -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