Class TestInterfaceManager
- java.lang.Object
-
- org.opendaylight.genius.testutils.TestInterfaceManager
-
- All Implemented Interfaces:
IInterfaceManager
public abstract class TestInterfaceManager extends java.lang.Object implements IInterfaceManager
IInterfaceManager implementation for tests.- Author:
- Michael Vorburger
-
-
Constructor Summary
Constructors Constructor Description TestInterfaceManager()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidaddInterface(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.Interface iface)voidaddInterfaceInfo(InterfaceInfo interfaceInfo)voidaddTunnelInterface(TunnelInterfaceDetails tunnelInterfaceDetails)org.opendaylight.yangtools.yang.common.Uint64getDpnForInterface(java.lang.String interfaceName)org.opendaylight.yangtools.yang.common.Uint64getDpnForInterface(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.Interface intrface)InterfaceInfogetInterfaceInfo(java.lang.String interfaceName)org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.InterfacegetInterfaceInfoFromConfigDataStore(java.lang.String interfaceName)Retrieve the interface information from the configuration datastore.InterfaceInfogetInterfaceInfoFromOperationalDataStore(java.lang.String interfaceName)InterfaceInfogetInterfaceInfoFromOperationalDataStore(java.lang.String interfaceName, InterfaceInfo.InterfaceType interfaceType)InterfaceInfogetInterfaceInfoFromOperationalDSCache(java.lang.String interfaceName)This API is currently used only for CLI usage.booleanisExternalInterface(java.lang.String interfaceName)Determine whether an interface is external.booleanisItmDirectTunnelsEnabled()booleanisItmOfTunnelsEnabled()static TestInterfaceManagernewInstance()Deprecated.UsenewInstance(DataBroker)instead now.static TestInterfaceManagernewInstance(org.opendaylight.mdsal.binding.api.DataBroker dataBroker)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.opendaylight.genius.interfacemanager.interfaces.IInterfaceManager
addInternalTunnelToCache, bindService, bindService, createVLANInterface, createVLANInterface, createVLANInterface, createVLANInterface, getBfdStateCache, getBridgeRefEntryMap, getChildInterfaces, getChildInterfaces, getEndpointIpForDpn, getInterfaceEgressActions, getInterfaceInfoFromConfigDataStore, getInternalTunnelCacheInfo, getLogicalTunnelSelectGroupId, getOvsdbBridgeForInterface, getOvsdbBridgeForNodeIid, getParentRefNameForInterface, getPortForInterface, getPortForInterface, getPortNameForInterface, getPortNameForInterface, getPortsOnBridge, getPortsOnBridgeByType, getTerminationPointCache, getTerminationPointForInterface, getTunnelPortsOnBridge, getVlanInterfaces, getVxlanInterfaces, isExternalInterface, isServiceBoundOnInterfaceForEgress, isServiceBoundOnInterfaceForIngress, removeInternalTunnelFromCache, unbindService, updateInterfaceParentRef, updateInterfaceParentRef
-
-
-
-
Method Detail
-
newInstance
@Deprecated public static TestInterfaceManager newInstance()
Deprecated.UsenewInstance(DataBroker)instead now.Deprecated factory method.
-
newInstance
public static TestInterfaceManager newInstance(org.opendaylight.mdsal.binding.api.DataBroker dataBroker)
-
addInterfaceInfo
public void addInterfaceInfo(InterfaceInfo interfaceInfo) throws java.util.concurrent.ExecutionException, java.lang.InterruptedException
- Throws:
java.util.concurrent.ExecutionExceptionjava.lang.InterruptedException
-
addInterface
public void addInterface(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.Interface iface)
-
addTunnelInterface
public void addTunnelInterface(TunnelInterfaceDetails tunnelInterfaceDetails) throws java.util.concurrent.ExecutionException, java.lang.InterruptedException
- Throws:
java.util.concurrent.ExecutionExceptionjava.lang.InterruptedException
-
getInterfaceInfo
public InterfaceInfo getInterfaceInfo(java.lang.String interfaceName)
- Specified by:
getInterfaceInfoin interfaceIInterfaceManager
-
getInterfaceInfoFromOperationalDataStore
public InterfaceInfo getInterfaceInfoFromOperationalDataStore(java.lang.String interfaceName)
- Specified by:
getInterfaceInfoFromOperationalDataStorein interfaceIInterfaceManager
-
getInterfaceInfoFromOperationalDataStore
public InterfaceInfo getInterfaceInfoFromOperationalDataStore(java.lang.String interfaceName, InterfaceInfo.InterfaceType interfaceType)
- Specified by:
getInterfaceInfoFromOperationalDataStorein interfaceIInterfaceManager
-
getInterfaceInfoFromOperationalDSCache
public InterfaceInfo getInterfaceInfoFromOperationalDSCache(java.lang.String interfaceName)
Description copied from interface:IInterfaceManagerThis 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.- Specified by:
getInterfaceInfoFromOperationalDSCachein interfaceIInterfaceManager
-
getInterfaceInfoFromConfigDataStore
public org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.Interface getInterfaceInfoFromConfigDataStore(java.lang.String interfaceName)
Description copied from interface:IInterfaceManagerRetrieve the interface information from the configuration datastore.- Specified by:
getInterfaceInfoFromConfigDataStorein interfaceIInterfaceManager- Parameters:
interfaceName- The interface name.- Returns:
- The interface information.
-
getDpnForInterface
public org.opendaylight.yangtools.yang.common.Uint64 getDpnForInterface(java.lang.String interfaceName)
- Specified by:
getDpnForInterfacein interfaceIInterfaceManager
-
getDpnForInterface
public org.opendaylight.yangtools.yang.common.Uint64 getDpnForInterface(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.Interface intrface)
- Specified by:
getDpnForInterfacein interfaceIInterfaceManager
-
isExternalInterface
public boolean isExternalInterface(java.lang.String interfaceName)
Description copied from interface:IInterfaceManagerDetermine whether an interface is external.- Specified by:
isExternalInterfacein interfaceIInterfaceManager- Parameters:
interfaceName- The interface name.- Returns:
trueif the interface is external,falseif it isn't.
-
isItmDirectTunnelsEnabled
public boolean isItmDirectTunnelsEnabled()
- Specified by:
isItmDirectTunnelsEnabledin interfaceIInterfaceManager
-
isItmOfTunnelsEnabled
public boolean isItmOfTunnelsEnabled()
- Specified by:
isItmOfTunnelsEnabledin interfaceIInterfaceManager
-
-