Conflicit Modification Exception on napt-Switch 83/73383/3
authorxcheara <chetan.arakere@altencalsoftlabs.com>
Sat, 23 Jun 2018 15:25:53 +0000 (20:55 +0530)
committerSam Hague <shague@redhat.com>
Tue, 3 Jul 2018 12:13:53 +0000 (12:13 +0000)
commitab096ca5a3c5dc363671d1d708421bab7a6cf499
tree4dc7817d3aed54b9cde49d29b8f3614e73216e15
parent50b4e10b94ecc3fd215bb6a9afcb516bad011f43
Conflicit Modification Exception on napt-Switch

Description :
During External-network suite clean-up, its been observed that both
the listener RouterDpnChangeListner.remove() and
ExternalRouterListener.remove() triggered symultanously both of
which updating router-to-napt-Switch DS resulting in conflicting
modifiction exception.

Changes are done for RouterDpnChangeListner to use DJC with router
lock to prevent such conflicting Modification exception.

Issue: NETVIRT-1040

Change-Id: I35ec9e2eaffb537e1f99361cdccda70ec4214d4d
Signed-off-by: xcheara <chetan.arakere@altencalsoftlabs.com>
natservice/impl/src/main/java/org/opendaylight/netvirt/natservice/internal/RouterDpnChangeListener.java