HwVTEP JUNITs, and fixing show:vxlan CLI
[vpnservice.git] / interfacemgr / interfacemgr-impl / src / main / java / org / opendaylight / vpnservice / interfacemgr / renderer / hwvtep / confighelpers / HwVTEPInterfaceConfigAddHelper.java
index 202b6b59a34f3cbf2e408bad7fe9cc28f8a010d3..113f76e0376cb5e06895b44cfc7f473504fb9a97 100644 (file)
@@ -77,25 +77,6 @@ public class HwVTEPInterfaceConfigAddHelper {
         return tpPath;
     }
 
-
-    private static InstanceIdentifier<TerminationPoint> createLocalPhysicalLocatorEntryIfNotPresent(List<ListenableFuture<Void>> futures,
-                                                                    DataBroker dataBroker,
-                                                                    WriteTransaction transaction,
-                                                                    IfTunnel ifTunnel,
-                                                                    InstanceIdentifier<Node> nodeIid){
-        String localIp = ifTunnel.getTunnelSource().getIpv4Address().getValue();
-        LOG.debug("creating local physical locator entry {}", localIp);
-        TerminationPointKey tpKey = SouthboundUtils.getTerminationPointKey(localIp);
-        InstanceIdentifier<TerminationPoint> tpPath =
-                SouthboundUtils.createInstanceIdentifier(nodeIid, tpKey);
-        // if local tep is not present, create it
-        TerminationPoint terminationPoint = SouthboundUtils.getTEPFromConfigDS(tpPath, dataBroker);
-        if(terminationPoint == null) {
-          createPhysicalLocatorEntry(transaction, futures, tpPath, tpKey, ifTunnel.getTunnelSource());
-        }
-        return tpPath;
-    }
-
     /*
      * This method writes the termination end point details to the topology Config DS
      */