Fix issue that was causing integration test failure. 20/28320/3
authorAnil Vishnoi <vishnoianil@gmail.com>
Tue, 13 Oct 2015 08:04:24 +0000 (13:34 +0530)
committerFlavio Fernandes <ffernand@redhat.com>
Tue, 13 Oct 2015 11:24:19 +0000 (07:24 -0400)
commitcfb6abf8d000ebca1f7585e1cda58cd82e21f329
treeecbf319d8b7bfb8e1e4216b0be9d65b14f3c7a5b
parent91c15602a6323fb4dec0dc2605c853689844aec6
Fix issue that was causing integration test failure.

In case of controller initiated connection, iid stamping
was not happening. Before clustering code merge, iid stamping
was done in updateData(), but after clustering code merge,
it does not allow to make any changes to the device till
owner of the device is selected by EntityOnwershipService,
so updateData() was not stamping the iid to swtich. With this
fix, once owner of the device is selected, it explictly stamp
iid to the switch.

NOTE: we should revert following patch before merging this patch
https://git.opendaylight.org/gerrit/#/c/28309/1

I ran the integration suit locally and it passes all the tests

[main] INFO org.ops4j.pax.exam.spi.reactors.ReactorManager - suite finished
Tests run: 22, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 288.094 sec - in org.opendaylight.ovsdb.southbound.it.SouthboundIT

Results :

Tests run: 22, Failures: 0, Errors: 0, Skipped: 0

Change-Id: I35d6e0a4fa94eef019420e9b9603873d5088a934
Signed-off-by: Anil Vishnoi <vishnoianil@gmail.com>
southbound/southbound-impl/src/main/java/org/opendaylight/ovsdb/southbound/OvsdbConnectionInstance.java
southbound/southbound-impl/src/main/java/org/opendaylight/ovsdb/southbound/OvsdbConnectionManager.java