Fixed the NAT issue SNAT flows not getting configured 32/43232/1
authorSatish Dutt <satish.dutt@ericsson.com>
Fri, 5 Aug 2016 12:47:27 +0000 (18:17 +0530)
committerSatish Dutt <satish.dutt@ericsson.com>
Fri, 5 Aug 2016 12:47:27 +0000 (18:17 +0530)
commit28708120590f8e51b7865dbdf0eaef8c27dc8e1b
tree5d2c1420868b3b738bda9d88ffd7c9db58e8b819
parentda16fecd35f3774da261dfeba01754ed262bd0f8
Fixed the NAT issue SNAT flows not getting configured

The model NeutronRouterDpns, which is one of the main models used
by SNAT, is not getting populated because of the dependent model
RouterInterfaces being empty. RouterInterfaces model is empty because
of the race condition b/n the RouterInterfacesListner thread
which is trying to read interface state before the thread which
updates the IetfInterfaces model. Hence in RouterInterfacesListener, we
have removed the check of operational state of Interfaces before populating the
RouterInterfaces model. Eventually InterfacesStateChangeListener will
read RouterInterfaces only when ietf-interface is updated and populates
the NeutronRouterDpns model

Change-Id: I2ffaa9d686d213bcd8187ac9e41c5ad2ae5945d8
Signed-off-by: Satish Dutt <satish.dutt@ericsson.com>
vpnservice/vpnmanager/vpnmanager-impl/src/main/java/org/opendaylight/netvirt/vpnmanager/InterfaceStateChangeListener.java
vpnservice/vpnmanager/vpnmanager-impl/src/main/java/org/opendaylight/netvirt/vpnmanager/RouterInterfaceListener.java
vpnservice/vpnmanager/vpnmanager-impl/src/main/java/org/opendaylight/netvirt/vpnmanager/VpnUtil.java