Remove GENIUS UTIL references in Elanmanager Module
[netvirt.git] / elanmanager / impl / src / test / java / org / opendaylight / netvirt / elan / l2gw / nodehandlertest / NodeConnectedHandlerUtils.java
index 1a3816d105e23f4a44298d0a2bff02f72d035557..f60672938174a244e8b07116e46cbe0a43b67dca 100644 (file)
@@ -7,14 +7,13 @@
  */
 package org.opendaylight.netvirt.elan.l2gw.nodehandlertest;
 
-import static org.opendaylight.mdsal.binding.api.WriteTransaction.CREATE_MISSING_PARENTS;
 
 import java.util.ArrayList;
 import java.util.Arrays;
 import java.util.List;
 import java.util.UUID;
-import org.opendaylight.genius.infra.Datastore.Operational;
-import org.opendaylight.genius.infra.TypedWriteTransaction;
+import org.opendaylight.mdsal.binding.util.Datastore.Operational;
+import org.opendaylight.mdsal.binding.util.TypedWriteTransaction;
 import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress;
 import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Ipv4Address;
 import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid;
@@ -81,7 +80,7 @@ public class NodeConnectedHandlerUtils {
         nodeBuilder.setTerminationPoint(PhysicalSwitchHelper
                 .addPhysicalSwitchTerminationPoints(path, portNameList));
 
-        tx.put(path, nodeBuilder.build(), CREATE_MISSING_PARENTS);
+        tx.mergeParentStructurePut(path, nodeBuilder.build());
     }
 
     private static NodeBuilder prepareOperationalNode(InstanceIdentifier<Node> iid) {