Handling SNAT cluster reboot failure 81/84281/4
authorChetan Arakere Gowdru <chetan.arakere@altencalsoftlabs.com>
Mon, 9 Sep 2019 12:41:40 +0000 (18:11 +0530)
committerFaseela K <faseela.k@ericsson.com>
Thu, 19 Sep 2019 07:22:35 +0000 (07:22 +0000)
commitb4705322925b1eacfa3a2167bbd3e4444e3d3b21
treee17551af9277328782a239ed874b592558c36917
parent97c44dc7dc79a197abcdd3f358655e5675ea7728
Handling SNAT cluster reboot failure

Description:
During Cluster reboot, the ext-router listener got the add event
following by update event(update of other parameters other then
enable/disable SNAT). When add event is recevied, a DPN is tried to
elect as NAPT switch, but since the CSS are not yet connect, Napt Switch
was not elected.

During update event, the Napt Switch was just elected without any
installation of flow(as there is no changes in enable/disable snat)
rersulting in failure.

Changes are done to handle update() event properly to install SNAT
related flows also when Napt Switch is elected.

Change-Id: I64f47dddf077ce7818ae6c76a497419dedb975f1
Signed-off-by: Chetan Arakere Gowdru <chetan.arakere@altencalsoftlabs.com>
natservice/impl/src/main/java/org/opendaylight/netvirt/natservice/internal/ExternalRoutersListener.java