Bug 960 : Avoid adding redundant Openflow Controller entries 06/9606/8
authorFlavio Fernandes <ffernand@redhat.com>
Sat, 2 Aug 2014 04:20:58 +0000 (00:20 -0400)
committerMadhu Venugopal <mavenugo@gmail.com>
Thu, 11 Sep 2014 19:26:46 +0000 (19:26 +0000)
commit1f0ec4191953f7852894e2313d21d3317741db9f
tree568e10a6088ab9e2d7abd0f644d89f8c44fea1d5
parentc813b4666450800df210033bd40dac61e6afefb5
Bug 960 : Avoid adding redundant Openflow Controller entries

* Added IT for reproducing the problem;
* Enhanced ConfigurationService.setOFController() to detect duplicate
  targets and update rows instead of adding new ones.

Log: https://gist.github.com/anonymous/4ce9b2abdecda3c5e7fa

Change-Id: Ifedc351e849a18feb66b6025189495cb991c38f2
Signed-off-by: Flavio Fernandes <ffernand@redhat.com>
integrationtest/src/test/java/org/opendaylight/ovsdb/integrationtest/plugin/OvsdbPluginIT.java
plugin/src/main/java/org/opendaylight/ovsdb/plugin/impl/ConfigurationServiceImpl.java