ELAN stale flow issue during VM migration 60/86860/4
authorAmitesh Soni <amitesh.soni@ericsson.com>
Mon, 13 Jan 2020 10:47:06 +0000 (16:17 +0530)
committerKarthikeyan Krishnan <karthikeyangceb007@gmail.com>
Wed, 12 Feb 2020 03:04:19 +0000 (03:04 +0000)
commit8a60766eab7bd089df731c9029f06653c7347ca4
treeef38eab0bdfeb449a73faac974b30999892c1ba2
parent2300ef30e455ac1f1546567c3fc4d29e7f1d2180
ELAN stale flow issue during VM migration

1) removing VpnPortIpToPort Listener in ELAN

* ELAN used to listen to VPNPortIptoPort data store
  for programming flows for MACs related to learnt IPs
* This is redundant since ELAN learns MAC by itself through table 50
* And this listener code could possibly lead to race
  conditions during VM migration leading to stale flows.

2) Fix for stale table 52 flows during migration

Removing the method createElanInterfaceTablesList to avoid
'modifiedNodeDoesNotExistException' when VM is migrated
from one DPN to another DPN, and delete and add ELAN
interface tries to update the same ElanInterfaceTablesList DS
improperly.

Signed-off-by: Amitesh Soni <amitesh.soni@ericsson.com>
Change-Id: Ib7ff56a89042362a74c6b8a241e1b2073b68d320
elanmanager/impl/src/main/java/org/opendaylight/netvirt/elan/internal/ElanInterfaceManager.java
elanmanager/impl/src/main/java/org/opendaylight/netvirt/elan/internal/ElanLearntVpnVipToPortListener.java