Project: netvirt master
19061ccd3c30aa3e9b9b998a288438b137abce87
Bug 6833: InterVpnLink FIB routes not populated when no VM on VPN
+ FIB table's flow that send the packet to BGP router for BGP-exported
route is not being populated when there is an InterVpnLink
but there are no VMs in the included VPNs.
+ At InterVpnLink creation, it checks if the VPN Operational data is
ready, and wait 20 seconds for it to be ready.
+ Fix is based on calling method fibManager.populateFibOnNewDpn()
when the InterVpnLink is created. Even if there are no real VPN
Interfaces installed on any DPNs, the InterVpnLink installs 2 fake
VpnInterfaces on the selected DPN(s). This wasn't triggering the
'createFibEntries' as real VpnInterfaces did.
+ Also, solves the problem of creating an InterVpnLink when the
Operational Data of a VPN is not ready yet
- New class VpnOpDataNotifier that offers methods like waitForXXXX,
to which other classes like VpnInterfaceManager or
InterVpnLinkListener can subscribe to. There must be only object
of this type per module, and it must be injected to the interested
classes via Constructor
Change-Id: Ib3fdcfe5946288b288ab3453bdcb9f2e68bdcb6e
Signed-off-by: Miguel Perez <francisco.miguel.perez@ericsson.com>