IPv4 entries appear in FIB though not asso to Rout 26/75226/5
authorKarthikeyan Krishnan <karthikeyangceb007@gmail.com>
Thu, 16 Aug 2018 12:31:01 +0000 (18:01 +0530)
committerSam Hague <shague@redhat.com>
Fri, 7 Sep 2018 22:45:43 +0000 (22:45 +0000)
commit25810f310c1108c7c276ba9cfd58be8d356b3db4
tree7b085f00f280c332b45d18d3220aa0f10d566ff4
parentc5845669f44b9e968408665b7a322a6e137da8d4
IPv4 entries appear in FIB though not asso to Rout

Issue:
=======
IPv4 entries are appearing in FIB when subnet is
not associated to router in a dualstack network

Solution Description:
=====================
Dual Stack VM has both IPv4 and IPv6 Address,
IPv6 or IPv4 subnet only associated to router
means it should show only IPv6 or IPv4 address
based on the subnet address family.

Currently once ARP response message from the
dual-stack VM interface received to ArpNotificationHandler
it is checking in the VPN DS "vpn-portip-to-port" for
IPv4 address and it won't find any entries for IPv4 subnet
Since IPv4 subnet is not part of router.As a result it will
return empty result and this will be considering as a learning
of that interface port. Which is causing this problem.

As part of this fix have properly added the check
for whether IPv4 subnet is part of vpn or not.

Issue: NETVIRT-1171

Change-Id: I0e67343557ecc887f8c4d5397890c1ceaf069ad0
Signed-off-by: Karthikeyan Krishnan <karthikeyangceb007@gmail.com>
vpnmanager/impl/src/main/java/org/opendaylight/netvirt/vpnmanager/VpnUtil.java
vpnmanager/impl/src/main/java/org/opendaylight/netvirt/vpnmanager/iplearn/AbstractIpLearnNotificationHandler.java
vpnmanager/impl/src/main/java/org/opendaylight/netvirt/vpnmanager/iplearn/ipv4/ArpNotificationHandler.java