Fix bug when a bridge is removed. 70/17570/1
authorEd Warnicke <eaw@cisco.com>
Wed, 1 Apr 2015 17:05:10 +0000 (13:05 -0400)
committerEd Warnicke <eaw@cisco.com>
Wed, 1 Apr 2015 17:05:10 +0000 (13:05 -0400)
The external_ids opendaylight-iid was not being used
for bridge remove.  Now it is.

Change-Id: I2cde45a07f255bbc5f1efb7d2c3b1bd2b63f98f5
Signed-off-by: Ed Warnicke <eaw@cisco.com>
southbound/southbound-impl/src/main/java/org/opendaylight/ovsdb/southbound/transactions/md/OvsdbBridgeRemovedCommand.java

index 19a368337c4c89bf7b427802f10d8573de98cacf..61c984d88cb5c9ec3a941cbb66d76a5f473efdd0 100644 (file)
@@ -10,7 +10,6 @@ import org.opendaylight.ovsdb.lib.schema.typed.TyperUtils;
 import org.opendaylight.ovsdb.schema.openvswitch.Bridge;
 import org.opendaylight.ovsdb.southbound.OvsdbClientKey;
 import org.opendaylight.ovsdb.southbound.SouthboundMapper;
-import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.ovsdb.rev150105.OvsdbBridgeName;
 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.ovsdb.rev150105.OvsdbBridgeRef;
 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.ovsdb.rev150105.OvsdbNodeAugmentation;
 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.ovsdb.rev150105.ovsdb.node.attributes.ManagedNodeEntry;
@@ -34,7 +33,7 @@ public class OvsdbBridgeRemovedCommand extends AbstractTransactionCommand {
                 getUpdates(), getDbSchema()).values();
         for (Bridge bridge : removedRows) {
             InstanceIdentifier<Node> bridgeIid = SouthboundMapper.createInstanceIdentifier(getKey(),
-                    new OvsdbBridgeName(bridge.getName()));
+                    bridge);
             InstanceIdentifier<ManagedNodeEntry> mnIid = SouthboundMapper.createInstanceIdentifier(getKey())
                     .augmentation(OvsdbNodeAugmentation.class)
                     .child(ManagedNodeEntry.class, new ManagedNodeEntryKey(new OvsdbBridgeRef(bridgeIid)));