If node joins the cluster after application master instance 68/28568/3
authorAnil Vishnoi <vishnoianil@gmail.com>
Mon, 19 Oct 2015 19:24:17 +0000 (00:54 +0530)
committerAnil Vishnoi <vishnoianil@gmail.com>
Mon, 19 Oct 2015 22:11:59 +0000 (03:41 +0530)
commit40d20563ccec2f3ae15a23bbb843d331a0cbbfc7
tree680dac5d1ce4ed7ad93a02d20eed948283d23484
parentef80005ded0454add21e4a2cb2ae513b88953da0
If node joins the cluster after application master instance
is selected, it doesn't get any notification about the ownership
change of the application, so it does not initiate the ovsdb manager,
It should check if any other instance is master instance,
if yes, consider itself slave and start the Ovsdb Manager.

Patch 2: Register entity ASAP, to minimize the delta for missing
ownership change notifications
Patch 3: Fixed unit test

Change-Id: Iea205de0a760f3e03962bb889e82acacfbf2247b
Signed-off-by: Anil Vishnoi <vishnoianil@gmail.com>
southbound/southbound-impl/src/main/java/org/opendaylight/ovsdb/southbound/SouthboundProvider.java
southbound/southbound-impl/src/test/java/org/opendaylight/ovsdb/southbound/SouthboundProviderTest.java