Fixes in interface manager and aliveness monitor
[vpnservice.git] / interfacemgr / interfacemgr-impl / src / main / java / org / opendaylight / vpnservice / interfacemgr / renderer / hwvtep / utilities / SouthboundUtils.java
index b811dc852340ede78e22e5bcf412c70efccddb91..94d774ce6b569513393686782105fcdcf090b414 100644 (file)
@@ -102,18 +102,6 @@ public class SouthboundUtils {
         return (InstanceIdentifier<Node>) physicalSwitchAugmentation.getManagedBy().getValue();
     }
 
-    public static InstanceIdentifier<TerminationPoint> createTerminationPointInstanceIdentifier(NodeKey nodekey,
-                                                                                                String portName){
-        InstanceIdentifier<TerminationPoint> terminationPointPath = InstanceIdentifier
-                .create(NetworkTopology.class)
-                .child(Topology.class, new TopologyKey(HWVTEP_TOPOLOGY_ID))
-                .child(Node.class,nodekey)
-                .child(TerminationPoint.class, new TerminationPointKey(new TpId(portName)));
-
-        LOG.debug("Termination point InstanceIdentifier generated : {}",terminationPointPath);
-        return terminationPointPath;
-    }
-
     public static InstanceIdentifier<TerminationPoint> createTEPInstanceIdentifier
             (InstanceIdentifier<Node> nodeIid,  IpAddress ipAddress) {
         TerminationPointKey localTEP = SouthboundUtils.getTerminationPointKey(ipAddress.getIpv4Address().getValue());
@@ -168,16 +156,6 @@ public class SouthboundUtils {
         return tpKey;
     }
 
-    public static TerminationPoint getTEPFromConfigDS(InstanceIdentifier<TerminationPoint> tpPath,
-                                                      DataBroker dataBroker) {
-        Optional<TerminationPoint> terminationPointOptional =
-                IfmUtil.read(LogicalDatastoreType.CONFIGURATION, tpPath, dataBroker);
-        if (!terminationPointOptional.isPresent()) {
-            return null;
-        }
-        return terminationPointOptional.get();
-    }
-
     public static void setDstIp(HwvtepPhysicalLocatorAugmentationBuilder tpAugmentationBuilder, IpAddress ipAddress) {
         IpAddress ip = new IpAddress(ipAddress);
         tpAugmentationBuilder.setDstIp(ip);