NETVIRT-1439 : Delete L3VPN cleanup failure. 88/76488/7
authorAchuth Maniyedath <achuth.maniyedath@gmail.com>
Wed, 12 Sep 2018 12:33:15 +0000 (18:03 +0530)
committerSam Hague <shague@redhat.com>
Tue, 16 Oct 2018 19:45:30 +0000 (19:45 +0000)
commit79629af6634b115f78b81e9fe2683d45faeef345
tree5cc2df8fd6f4e95a4a8130346508a1b7c5f6ef35
parent664145d968009fbbf2c59428bb0165d10aac7250
NETVIRT-1439 : Delete L3VPN cleanup failure.

After running clean script seeing stray fib and vpn configs.

A recent fix to handle cleanup of external PNF flows had broken
footprint cleanup of all other types of FIB entries. This fix made
use of the parentVpnRd attribute in VrfEntry to check for the
footprint of external subnet where the PNFs are discovered (Since,
the footprint/interfaces for that external subnet is maintained in
the VPN of its external network). The parentVpnRf points to this
external network.

The above mentioned fix broke cleanup of existing FIBs since no
other non-PNF fibs will hve their parentVPnRd set.

SO, this fix considers the primaryRd if parentVpnRd is not set.

Change-Id: I3a6f216e9f9cfa6bc6fe1dc8fa7e95b958ebd1b7
Signed-off-by: Kiran N Upadhyaya <kiran.n.upadhyaya@ericsson.com>
Signed-off-by: Achuth Maniyedath <achuth.maniyedath@gmail.com>
Signed-off-by: Achuth <achuth.maniyedath@gmail.com>
fibmanager/impl/src/main/java/org/opendaylight/netvirt/fibmanager/VrfEntryListener.java
neutronvpn/impl/src/main/java/org/opendaylight/netvirt/neutronvpn/NeutronvpnManager.java