Fix: Reconnect updates the tunnel state 05/88205/5
authorApurba Mukherjee <apurba.mukherjee@ericsson.com>
Mon, 23 Sep 2019 06:10:07 +0000 (11:40 +0530)
committerHema Gopalakrishnan <hema.gopalkrishnan@ericsson.com>
Mon, 3 Aug 2020 17:01:48 +0000 (17:01 +0000)
commit3929b21849db35a2fde69a1da35ad7fe6c70e0ae
tree389cb0438c1813496b4144d5b252390c41efc272
parent6ae0913971df48b4c22586f26d598b71795a59c5
Fix: Reconnect updates the tunnel state

Check if tunnels State has an entry for this interface.
If so, then this Inventory Add is due to the compute re-connection. Then, ONLY update the state
to UP as previously the compute would have disconnected and so the state will be UNKNOWN.

Change-Id: I957c0e5892763bcae43dbd481ad0620b1d193f0f
Signed-off-by: Apurba Mukherjee <apurba.mukherjee@ericsson.com>
itm/itm-impl/src/main/java/org/opendaylight/genius/itm/itmdirecttunnels/listeners/TunnelInventoryStateListener.java