When a host moves and is locally reachable, if the local neighbor event
is received before the local MAC event, flag the neighbor as inactive
just as would happen in the case of a new host. This ensures that the
MACIP route will get originated as soon as the local MAC event is got.
Signed-off-by: Vivek Venkatraman <vivek@cumulusnetworks.com>
}
/* Before we program this in BGP, we need to check if MAC is locally
- * learnt as well
+ * learnt. If not, force neighbor to be inactive.
*/
if (!CHECK_FLAG(zmac->flags, ZEBRA_MAC_LOCAL)) {
if (IS_ZEBRA_DEBUG_VXLAN)
prefix_mac2str(macaddr, buf, sizeof(buf)),
zvni->vni);
+ ZEBRA_NEIGH_SET_INACTIVE(n);
return 0;
}