Interfacemanager-api : Checkstyle Enforcement
[genius.git] / interfacemanager / interfacemanager-api / src / main / java / org / opendaylight / genius / interfacemanager / interfaces / IInterfaceManager.java
index 7618cc420d4a11ef92c1d1c8f388361db4c43d1e..1fc67d92d950cd3496ffb87a3f642fe088573070 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2016 Ericsson India Global Services Pvt Ltd. and others.  All rights reserved.
+ * Copyright (c) 2016, 2017 Ericsson India Global Services Pvt Ltd. and others. All rights reserved.
  *
  * This program and the accompanying materials are made available under the
  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
@@ -17,6 +17,7 @@ import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.
 import org.opendaylight.yang.gen.v1.urn.opendaylight.genius.interfacemanager.rev160406.IfL2vlan;
 import org.opendaylight.yang.gen.v1.urn.opendaylight.genius.interfacemanager.servicebinding.rev160406.ServiceModeBase;
 import org.opendaylight.yang.gen.v1.urn.opendaylight.genius.interfacemanager.servicebinding.rev160406.service.bindings.services.info.BoundServices;
+import org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.NodeConnectorId;
 
 public interface IInterfaceManager {
     @Deprecated
@@ -44,6 +45,12 @@ public interface IInterfaceManager {
 
     InterfaceInfo getInterfaceInfoFromOperationalDataStore(String interfaceName);
 
+    /**
+     * This API is currently used only for CLI usage. Please be careful that this API
+     * can return stale entries since it is just a cache read.
+     */
+    InterfaceInfo getInterfaceInfoFromOperationalDSCache(String interfaceName);
+
     Interface getInterfaceInfoFromConfigDataStore(String interfaceName);
 
     void createVLANInterface(String interfaceName, String portName, BigInteger dpId, Integer vlanId, String description,
@@ -62,4 +69,14 @@ public interface IInterfaceManager {
 
     boolean isExternalInterface(String interfaceName);
 
+    String getPortNameForInterface(NodeConnectorId nodeConnectorId, String interfaceName);
+
+    String getPortNameForInterface(String dpnId, String interfaceName);
+
+    String getParentRefNameForInterface(String interfaceName);
+
+    void updateInterfaceParentRef(String interfaceName, String parentInterface);
+
+    void updateInterfaceParentRef(String interfaceName, String parentInterface, boolean readInterfaceBeforeWrite);
+
 }