Fix invalid dpnId configured as NAPT Switch 26/73826/6
authorSridhar Gaddam <sgaddam@redhat.com>
Sun, 8 Jul 2018 15:22:34 +0000 (20:52 +0530)
committerSam Hague <shague@redhat.com>
Thu, 12 Jul 2018 00:53:50 +0000 (00:53 +0000)
commitc6d5f7e102dc7a13d7bc795e294d52a4c5d01905
treefd3381049e4c9fec50df486d50a8c7e5f935e5b7
parentbb2270cb92499ea9117601be7f7ec520a8476e59
Fix invalid dpnId configured as NAPT Switch

Issue: NETVIRT-1361

This patch schedules a primaryNAPTSwitch for the routers
which do not have any allocation and also ensures that an
invalid switch is not allocated for a router.

Change-Id: Ib2355cb935c1014915270196b86ae4eb10ec8a72
Signed-off-by: Sridhar Gaddam <sgaddam@redhat.com>
(cherry picked from commit 6b49f701e57981db6d942053783d138bf3027a98)
(cherry picked from commit f7d129498326a7336c40c8783fea35228cc672fd)
natservice/impl/src/main/java/org/opendaylight/netvirt/natservice/ha/WeightedCentralizedSwitchScheduler.java