summaryrefslogtreecommitdiff
path: root/ospfd/ospf_zebra.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2018-03-15 09:01:27 -0400
committerGitHub <noreply@github.com>2018-03-15 09:01:27 -0400
commit010c5efac09397f19d6d883bd7c8682a4ffeaa87 (patch)
treecb385fffd0696e2e094910fa4214967305ebeea6 /ospfd/ospf_zebra.c
parent309d667bcbde0a23bdf544fdf61f3f16138f40d9 (diff)
parent9891fa4cb101dcd3e3c345fe99c9ebb63af69c46 (diff)
Merge pull request #1739 from LabNConsulting/working/master/bgp-vpn-vrf-leaking
bgpd: vpn - vrf route leaking
Diffstat (limited to 'ospfd/ospf_zebra.c')
-rw-r--r--ospfd/ospf_zebra.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/ospfd/ospf_zebra.c b/ospfd/ospf_zebra.c
index 3b257fec96..e322f60509 100644
--- a/ospfd/ospf_zebra.c
+++ b/ospfd/ospf_zebra.c
@@ -949,6 +949,14 @@ static int ospf_zebra_read_route(int command, struct zclient *zclient,
if (IPV4_NET127(ntohl(p.prefix.s_addr)))
return 0;
+ if (IS_DEBUG_OSPF(zebra, ZEBRA_REDISTRIBUTE)) {
+ char buf_prefix[PREFIX_STRLEN];
+ prefix2str(&api.prefix, buf_prefix, sizeof(buf_prefix));
+
+ zlog_debug("%s: from client %s: vrf_id %d, p %s", __func__,
+ zebra_route_string(api.type), vrf_id, buf_prefix);
+ }
+
if (command == ZEBRA_REDISTRIBUTE_ROUTE_ADD) {
/* XXX|HACK|TODO|FIXME:
* Maybe we should ignore reject/blackhole routes? Testing
@@ -1455,8 +1463,6 @@ void ospf_zebra_vrf_register(struct ospf *ospf)
__PRETTY_FUNCTION__,
ospf_vrf_id_to_name(ospf->vrf_id),
ospf->vrf_id);
- /* Deregister for router-id, interfaces,
- * redistributed routes. */
zclient_send_reg_requests(zclient, ospf->vrf_id);
}
}