Learnt/MIP nexthop is of different address family 94/79394/2
authorSomashekar Byrappa <somashekar.b@altencalsoftlabs.com>
Thu, 10 Jan 2019 07:04:26 +0000 (12:34 +0530)
committerSam Hague <shague@redhat.com>
Fri, 25 Jan 2019 03:22:15 +0000 (03:22 +0000)
commite2eaa55eb63d4e6724c88f1b6307655982deddb6
tree56a1653362899c125ad98316f1751957be4e35e2
parent08bccf9b8dc1cabd72f5bb6b4d4b025b6e5e86fc
Learnt/MIP nexthop is of different address family

Issue:
------
Sporadic issue wherein learnt/MIP IPv4 address has IPv6 address as
nexthop and vice-versa in vpn-interfaces DS.

Solution:
---------
+ Added required check to make sure IPv4 MIP has IPv4 address as
  nexthop. Similarly for IPv6 MIPs.
+ This will ensure both local fixed IP and local MIPs pointing to
  same OF group in table-21.
+ Additionally simplified some part of the code in the same method by
  refactoring.

Change-Id: Ia94d0662187ed752a88eaedd9482f0539020e636
Signed-off-by: Somashekar Byrappa <somashekar.b@altencalsoftlabs.com>
vpnmanager/impl/src/main/java/org/opendaylight/netvirt/vpnmanager/iplearn/LearntVpnVipToPortEventProcessor.java