Fix for defect 4135
authorSharad Mishra <sharad.d.mishra@intel.com>
Wed, 12 Aug 2015 17:53:14 +0000 (13:53 -0400)
committerSharad Mishra <sharad.d.mishra@intel.com>
Tue, 25 Aug 2015 22:04:07 +0000 (15:04 -0700)
commit7a9fe630668412d4778872cfc34dd353bb9673d4
treec7ba6be31e4203fbe20bdb50ff58d58f3d27d1f8
parent110633d5974251dcac74e7411eddd34d2f8ed72a
Fix for defect 4135

https://bugs.opendaylight.org/show_bug.cgi?id=4135

If integration bridge or external bridge exist prior to
connecting to ODL, then the pre-existing bridge is not added.
But the side effect is that the controller is not set on
this bridge.
Current code checks to see if the bridge already exists on the node. This
patch adds a check to see if the bridge exists on CONFIG datastore. If the
bridge does not exist on config, it indicates that the bridge existed prior
to ODL connection, and it adds the bridge.

Signed-off-by: Sharad Mishra <sharad.d.mishra@intel.com>
openstack/net-virt/src/main/java/org/opendaylight/ovsdb/openstack/netvirt/api/Southbound.java
openstack/net-virt/src/main/java/org/opendaylight/ovsdb/openstack/netvirt/impl/BridgeConfigurationManagerImpl.java
openstack/net-virt/src/main/java/org/opendaylight/ovsdb/openstack/netvirt/impl/SouthboundImpl.java