From 31310b25f20260b66ab7a4ce726f57d815424867 Mon Sep 17 00:00:00 2001 From: Mitesh Kanjariya Date: Sun, 19 Nov 2017 21:47:04 -0800 Subject: bgpd: advertise VNI subnet In EVPN symmetric routing, not all subnets are presents everywhere. We have multiple scenarios where a host might not get learned locally. 1. GARP miss 2. SVI down/up 3. Silent host We need a mechanism to resolve such hosts. In order to achieve this, we will be advertising a subnet route from a box and that box will help in resolving the ARP to such hosts. Signed-off-by: Mitesh Kanjariya --- lib/zclient.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'lib/zclient.c') diff --git a/lib/zclient.c b/lib/zclient.c index a4bd2bda32..a4fa0966a7 100644 --- a/lib/zclient.c +++ b/lib/zclient.c @@ -2234,6 +2234,16 @@ static int zclient_read(struct thread *thread) (*zclient->local_macip_del)(command, zclient, length, vrf_id); break; + case ZEBRA_IP_PREFIX_ROUTE_ADD: + if (zclient->local_ip_prefix_add) + (*zclient->local_ip_prefix_add)(command, zclient, + length, vrf_id); + break; + case ZEBRA_IP_PREFIX_ROUTE_DEL: + if (zclient->local_ip_prefix_del) + (*zclient->local_ip_prefix_del)(command, zclient, + length, vrf_id); + break; case ZEBRA_PW_STATUS_UPDATE: if (zclient->pw_status_update) (*zclient->pw_status_update)(command, zclient, length, -- cgit v1.2.3