Clean up VPN data on VPN delete. 36/70336/4
authorDeepthi V V <deepthi.v.v@ericsson.com>
Wed, 4 Apr 2018 12:27:30 +0000 (17:57 +0530)
committerVivekanandan Narasimhan <vivek.konnect@gmail.com>
Mon, 9 Apr 2018 02:58:48 +0000 (02:58 +0000)
commit92f74e5e14561bc7681eda9758f5a7ad358bb695
tree79632558bdeeb5a1a203782cbc6c49e70ca7b177
parent8a7e0d088e0c4501b3747ba7f6a781813192fd85
Clean up VPN data on VPN delete.

1. When a VRFTable is not created in FIB due to VPN addition, the VRFTable will
not be available during VPN deletion.
2. The prefix-to-interface, l3-nexthop datastores will not have any data for
a vpn, until a vpn-interface is up and running in the network.
Under such conditions VPN deletion causes
ModifiedNodeDoesNotExistException on trying to delete such datastores
which causes entire transaction which handles clean-up to fail, leave
stale-data in the system.

This further causes new VPN-create with same RDs to fail. This review
fixes the issue.

Change-Id: I3011d81907eb32693de3079bd118cfaaf1b9dfcc
Signed-off-by: Deepthi V V <deepthi.v.v@ericsson.com>
fibmanager/api/src/main/java/org/opendaylight/netvirt/fibmanager/api/IFibManager.java
fibmanager/impl/src/main/java/org/opendaylight/netvirt/fibmanager/FibManagerImpl.java
fibmanager/impl/src/main/java/org/opendaylight/netvirt/fibmanager/FibUtil.java
vpnmanager/impl/src/main/java/org/opendaylight/netvirt/vpnmanager/VpnInstanceListener.java
vpnmanager/impl/src/main/java/org/opendaylight/netvirt/vpnmanager/VpnOpStatusListener.java