bug 7781 update vlan bindings and tunnel ips 89/55189/2
authorK.V Suneelu Verma <k.v.suneelu.verma@ericsson.com>
Wed, 19 Apr 2017 06:28:22 +0000 (11:58 +0530)
committerAnil Vishnoi <vishnoianil@gmail.com>
Thu, 20 Apr 2017 02:22:32 +0000 (02:22 +0000)
When physical switch update arrives write it in op datastore.

Change-Id: I46ca4f70b59961eeebbc17c0073fe40f852278b5
Signed-off-by: K.V Suneelu Verma <k.v.suneelu.verma@ericsson.com>
hwvtepsouthbound/hwvtepsouthbound-impl/src/main/java/org/opendaylight/ovsdb/hwvtepsouthbound/transactions/md/HwvtepPhysicalSwitchUpdateCommand.java

index 389d7d789f010094ea3ab7730adbd5c23e35fe35..9418f4181ab86dcded13bfce12712417c047fe78 100644 (file)
@@ -96,6 +96,7 @@ public class HwvtepPhysicalSwitchUpdateCommand extends AbstractTransactionComman
             // Update the Physical Switch with whatever data we are getting
             InstanceIdentifier<Node> psIid = getInstanceIdentifier(pSwitch);
             Node psNode = buildPhysicalSwitchNode(connection.get(), pSwitch);
+            transaction.merge(LogicalDatastoreType.OPERATIONAL, psIid, psNode);
 
             PhysicalSwitch oldPSwitch = oldPSRows.get(uuid);
             updateTunnelIps(pSwitch, oldPSwitch, transaction);