/*
- * 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,
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
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,
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);
+
}