Bug 1471 : Fixing the Open_vSwitch Schema Controller Table's Target as String (from...
authorMadhu Venugopal <mavenugo@gmail.com>
Sat, 2 Aug 2014 17:20:29 +0000 (10:20 -0700)
committerMadhu Venugopal <mavenugo@gmail.com>
Sat, 2 Aug 2014 17:20:29 +0000 (10:20 -0700)
Also added a IT test to cover this case.
This issue was uncovered while fixing https://git.opendaylight.org/gerrit/#/c/9606

Change-Id: Icf1b242f65a58aa6a38259ee0f7195d1ec946d7c
Signed-off-by: Madhu Venugopal <mavenugo@gmail.com>
plugin/src/main/java/org/opendaylight/ovsdb/plugin/ConfigurationService.java

index c80f424ea42a49521804d2f1e50b4a4559c0391a..c5490fccac800b6637be2964c7639c81e30a9c02 100644 (file)
@@ -510,7 +510,7 @@ public class ConfigurationService implements IPluginInBridgeDomainConfigService,
         for (InetAddress ofControllerAddress : ofControllerAddrs) {
             String newController = "tcp:"+ofControllerAddress.getHostAddress()+":"+ofControllerPort;
             Controller controllerRow = connection.getClient().createTypedRowWrapper(Controller.class);
-            controllerRow.setTarget(ImmutableSet.of(newController));
+            controllerRow.setTarget(newController);
             //ToDo: Status gets overwritten on each iteration. If any operation other than the last fails it's ignored.
             status = this.insertRow(node, controllerRow.getSchema().getName(), bridgeUUID, controllerRow.getRow());
         }