Fix broken Create multiple VPNs tests 86/68486/5
authorDeepthi V V <deepthi.v.v@ericsson.com>
Thu, 22 Feb 2018 07:22:15 +0000 (12:52 +0530)
committerSam Hague <shague@redhat.com>
Wed, 7 Mar 2018 23:09:00 +0000 (23:09 +0000)
commit5db0a8a1aa8c6c9ce8bf7c39f7044dd2f9a59fb6
tree19f6dde2e4df31e54c74b346d083f4de816e382e
parentecc0f58ec76028087024df8d582e8db8a3c6461e
Fix broken Create multiple VPNs tests

Deletion of bgpvpn with router associations should move vpn-interfaces to router

On deletion of bgpvpn with router associations, vpn-interfaces under
that bgpvpn will get updated with router as its vpn-instance name.
This will trigger remove and add of vpn-interface logic.
At present, former happens but latter does not.

Since, vpn-interace operational data is moved from operational
vpn-interface object to vpn-interface-op-data keyed on rd, interface name
vpn-interface remove/add can proceed without inter-dependency.

This fix removed batched processing of vpn-interfaces in swap scenarios
and does remove and add then and there in update event handling.

Partial-Bug: NETVIRT-1106
Change-Id: Id2b4b07e6c99fb3b5ecdc0f6063fdbd8a854e415
Signed-off-by: Deepthi V V <deepthi.v.v@ericsson.com>
vpnmanager/impl/src/main/java/org/opendaylight/netvirt/vpnmanager/UpdateData.java [deleted file]
vpnmanager/impl/src/main/java/org/opendaylight/netvirt/vpnmanager/VpnInterfaceManager.java