NETVIRT-1068: Upstreaming fixes 78/67478/8
authorHANAMANTAGOUD V Kandagal <hanamantagoud.v.kandagal@ericsson.com>
Tue, 23 Jan 2018 12:25:00 +0000 (17:55 +0530)
committerSam Hague <shague@redhat.com>
Sat, 10 Feb 2018 16:59:14 +0000 (16:59 +0000)
commit37224170436fc34cdd01c8ae69910b01e159aa9a
treea621a897118485292854f645229b844059e88806
parent1c3ae785f84659c2ad7c6f795a8990c8ee00884e
NETVIRT-1068: Upstreaming fixes

Issue-1: When VpnInterface has a secondary adjacency like invisible ip, if tunnel
EP is deleted , VpnInterface Op DS is updated with empty nexthoplist.
During this time , invisible ip goes missing from VpnInterface Op DS due
to MDSAL.syncwrite() being done in updateVpnInterfaceOnTepDelete. Another
fix being done here is , invisible ip FIB entry is updated with empty
nexthop and route is withdrawn/advertized to BGP

Issue-2:  prefix-A part of subnet-A/network-A/VPN-A. The refcount for
prefix-A is 1. When VPN-B is importing from VPN-A , refcount is 2. But
when prefix-B part of VPN-B is deleted , refcount was not decremented.
For self-imported routes , when the prefix is deleted , refcount is
decremented.

Change-Id: I2cabeaa1ae23e356b2d17a527e9bbc6a5b21afd0
Signed-off-by: HANAMANTAGOUD V Kandagal <hanamantagoud.v.kandagal@ericsson.com>
vpnservice/fibmanager/fibmanager-impl/src/main/java/org/opendaylight/netvirt/fibmanager/VrfEntryListener.java
vpnservice/vpnmanager/vpnmanager-impl/src/main/java/org/opendaylight/netvirt/vpnmanager/VpnInstanceListener.java
vpnservice/vpnmanager/vpnmanager-impl/src/main/java/org/opendaylight/netvirt/vpnmanager/VpnInterfaceManager.java
vpnservice/vpnmanager/vpnmanager-impl/src/main/java/org/opendaylight/netvirt/vpnmanager/VpnManagerImpl.java
vpnservice/vpnmanager/vpnmanager-impl/src/main/java/org/opendaylight/netvirt/vpnmanager/VpnSubnetRouteHandler.java
vpnservice/vpnmanager/vpnmanager-impl/src/main/java/org/opendaylight/netvirt/vpnmanager/populator/impl/L3vpnPopulator.java