Interface IInterfaceManager
-
- All Known Implementing Classes:
InterfacemgrProvider
,TestInterfaceManager
public interface IInterfaceManager
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description void
bindService(java.lang.String interfaceName, java.lang.Class<? extends ServiceModeBase> serviceMode, BoundServices serviceInfo)
void
bindService(java.lang.String interfaceName, java.lang.Class<? extends ServiceModeBase> serviceMode, BoundServices serviceInfo, TypedWriteTransaction<Datastore.Configuration> tx)
com.google.common.util.concurrent.ListenableFuture<java.lang.Void>
createVLANInterface(java.lang.String interfaceName, java.lang.String portName, java.lang.Integer vlanId, java.lang.String description, IfL2vlan.L2vlanMode l2vlanMode)
com.google.common.util.concurrent.ListenableFuture<java.lang.Void>
createVLANInterface(java.lang.String interfaceName, java.lang.String portName, java.lang.Integer vlanId, java.lang.String description, IfL2vlan.L2vlanMode l2vlanMode, boolean isExternal)
void
createVLANInterface(java.lang.String interfaceName, java.lang.String portName, org.opendaylight.yangtools.yang.common.Uint64 dpId, java.lang.Integer vlanId, java.lang.String description, IfL2vlan.L2vlanMode l2vlanMode)
void
createVLANInterface(java.lang.String interfaceName, java.lang.String portName, org.opendaylight.yangtools.yang.common.Uint64 dpId, java.lang.Integer vlanId, java.lang.String description, IfL2vlan.L2vlanMode l2vlanMode, boolean isExternal)
java.util.Map<java.lang.String,org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.state.Interface.OperStatus>
getBfdStateCache()
java.util.Map
getBridgeRefEntryMap()
java.util.List<org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.Interface>
getChildInterfaces(java.lang.String parentInterface)
Deprecated.UsegetChildInterfaces(ReadTransaction, String)
instead.java.util.List<org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.Interface>
getChildInterfaces(org.opendaylight.mdsal.binding.api.ReadTransaction tx, java.lang.String parentInterface)
Retrieve an interface's children.org.opendaylight.yangtools.yang.common.Uint64
getDpnForInterface(java.lang.String ifName)
org.opendaylight.yangtools.yang.common.Uint64
getDpnForInterface(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.Interface intrf)
java.lang.String
getEndpointIpForDpn(org.opendaylight.yangtools.yang.common.Uint64 dpnId)
java.util.List<ActionInfo>
getInterfaceEgressActions(java.lang.String ifName)
InterfaceInfo
getInterfaceInfo(java.lang.String intInfo)
org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.Interface
getInterfaceInfoFromConfigDataStore(java.lang.String interfaceName)
Deprecated.org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.Interface
getInterfaceInfoFromConfigDataStore(org.opendaylight.mdsal.binding.api.ReadTransaction tx, java.lang.String interfaceName)
Retrieve the interface information from the configuration datastore.InterfaceInfo
getInterfaceInfoFromOperationalDataStore(java.lang.String interfaceName)
InterfaceInfo
getInterfaceInfoFromOperationalDataStore(java.lang.String interfaceName, InterfaceInfo.InterfaceType interfaceType)
InterfaceInfo
getInterfaceInfoFromOperationalDSCache(java.lang.String interfaceName)
This API is currently used only for CLI usage.long
getLogicalTunnelSelectGroupId(int lportTag)
org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.ovsdb.rev150105.OvsdbBridgeAugmentation
getOvsdbBridgeForInterface(java.lang.String interfaceName)
org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.ovsdb.rev150105.OvsdbBridgeAugmentation
getOvsdbBridgeForNodeIid(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node> nodeIid)
java.lang.String
getParentRefNameForInterface(java.lang.String interfaceName)
java.lang.Long
getPortForInterface(java.lang.String ifName)
java.lang.Long
getPortForInterface(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.Interface intf)
java.lang.String
getPortNameForInterface(java.lang.String dpnId, java.lang.String interfaceName)
java.lang.String
getPortNameForInterface(org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.NodeConnectorId nodeConnectorId, java.lang.String interfaceName)
java.util.List<org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.ovsdb.rev150105.OvsdbTerminationPointAugmentation>
getPortsOnBridge(org.opendaylight.yangtools.yang.common.Uint64 dpnId)
java.util.Map<java.lang.Class<? extends org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.ovsdb.rev150105.InterfaceTypeBase>,java.util.List<org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.ovsdb.rev150105.OvsdbTerminationPointAugmentation>>
getPortsOnBridgeByType(org.opendaylight.yangtools.yang.common.Uint64 dpnId)
java.util.Map<java.lang.String,org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.ovsdb.rev150105.OvsdbTerminationPointAugmentation>
getTerminationPointCache()
org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.ovsdb.rev150105.OvsdbTerminationPointAugmentation
getTerminationPointForInterface(java.lang.String interfaceName)
java.util.List<org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.ovsdb.rev150105.OvsdbTerminationPointAugmentation>
getTunnelPortsOnBridge(org.opendaylight.yangtools.yang.common.Uint64 dpnId)
java.util.List<org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.Interface>
getVlanInterfaces()
java.util.List<org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.Interface>
getVxlanInterfaces()
boolean
isExternalInterface(java.lang.String interfaceName)
Deprecated.UseisExternalInterface(ReadTransaction, String)
instead.boolean
isExternalInterface(org.opendaylight.mdsal.binding.api.ReadTransaction tx, java.lang.String interfaceName)
Determine whether an interface is external.boolean
isItmDirectTunnelsEnabled()
boolean
isServiceBoundOnInterfaceForEgress(short servicePriority, java.lang.String interfaceName)
boolean
isServiceBoundOnInterfaceForIngress(short servicePriority, java.lang.String interfaceName)
void
unbindService(java.lang.String interfaceName, java.lang.Class<? extends ServiceModeBase> serviceMode, BoundServices serviceInfo)
void
updateInterfaceParentRef(java.lang.String interfaceName, java.lang.String parentInterface)
void
updateInterfaceParentRef(java.lang.String interfaceName, java.lang.String parentInterface, boolean readInterfaceBeforeWrite)
-
-
-
Method Detail
-
getPortForInterface
java.lang.Long getPortForInterface(java.lang.String ifName)
-
getPortForInterface
java.lang.Long getPortForInterface(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.Interface intf)
-
getDpnForInterface
org.opendaylight.yangtools.yang.common.Uint64 getDpnForInterface(java.lang.String ifName)
-
getDpnForInterface
org.opendaylight.yangtools.yang.common.Uint64 getDpnForInterface(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.Interface intrf)
-
getEndpointIpForDpn
java.lang.String getEndpointIpForDpn(org.opendaylight.yangtools.yang.common.Uint64 dpnId)
-
getInterfaceEgressActions
java.util.List<ActionInfo> getInterfaceEgressActions(java.lang.String ifName)
-
getInterfaceInfo
InterfaceInfo getInterfaceInfo(java.lang.String intInfo)
-
getInterfaceInfoFromOperationalDataStore
InterfaceInfo getInterfaceInfoFromOperationalDataStore(java.lang.String interfaceName, InterfaceInfo.InterfaceType interfaceType)
-
getInterfaceInfoFromOperationalDataStore
InterfaceInfo getInterfaceInfoFromOperationalDataStore(java.lang.String interfaceName)
-
getInterfaceInfoFromOperationalDSCache
InterfaceInfo getInterfaceInfoFromOperationalDSCache(java.lang.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.
-
getInterfaceInfoFromConfigDataStore
@Deprecated org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.Interface getInterfaceInfoFromConfigDataStore(java.lang.String interfaceName)
Deprecated.Retrieve the interface information from the configuration datastore.- Parameters:
interfaceName
- The interface name.- Returns:
- The interface information.
-
getInterfaceInfoFromConfigDataStore
org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.Interface getInterfaceInfoFromConfigDataStore(org.opendaylight.mdsal.binding.api.ReadTransaction tx, java.lang.String interfaceName) throws org.opendaylight.mdsal.common.api.ReadFailedException, java.util.concurrent.ExecutionException, java.lang.InterruptedException
Retrieve the interface information from the configuration datastore.- Parameters:
tx
- The transaction to use.interfaceName
- The interface name.- Returns:
- The interface information.
- Throws:
org.opendaylight.mdsal.common.api.ReadFailedException
- if an exception occurs while reading from the datastore.java.util.concurrent.ExecutionException
java.lang.InterruptedException
-
createVLANInterface
@Deprecated void createVLANInterface(java.lang.String interfaceName, java.lang.String portName, org.opendaylight.yangtools.yang.common.Uint64 dpId, java.lang.Integer vlanId, java.lang.String description, IfL2vlan.L2vlanMode l2vlanMode) throws InterfaceAlreadyExistsException
Create a VLAN interface.- Throws:
InterfaceAlreadyExistsException
-
createVLANInterface
com.google.common.util.concurrent.ListenableFuture<java.lang.Void> createVLANInterface(java.lang.String interfaceName, java.lang.String portName, java.lang.Integer vlanId, java.lang.String description, IfL2vlan.L2vlanMode l2vlanMode) throws InterfaceAlreadyExistsException
- Throws:
InterfaceAlreadyExistsException
-
createVLANInterface
@Deprecated void createVLANInterface(java.lang.String interfaceName, java.lang.String portName, org.opendaylight.yangtools.yang.common.Uint64 dpId, java.lang.Integer vlanId, java.lang.String description, IfL2vlan.L2vlanMode l2vlanMode, boolean isExternal) throws InterfaceAlreadyExistsException
Create a VLAN interface.- Throws:
InterfaceAlreadyExistsException
-
createVLANInterface
com.google.common.util.concurrent.ListenableFuture<java.lang.Void> createVLANInterface(java.lang.String interfaceName, java.lang.String portName, java.lang.Integer vlanId, java.lang.String description, IfL2vlan.L2vlanMode l2vlanMode, boolean isExternal) throws InterfaceAlreadyExistsException
- Throws:
InterfaceAlreadyExistsException
-
isServiceBoundOnInterfaceForIngress
boolean isServiceBoundOnInterfaceForIngress(short servicePriority, java.lang.String interfaceName)
-
isServiceBoundOnInterfaceForEgress
boolean isServiceBoundOnInterfaceForEgress(short servicePriority, java.lang.String interfaceName)
-
bindService
void bindService(java.lang.String interfaceName, java.lang.Class<? extends ServiceModeBase> serviceMode, BoundServices serviceInfo)
-
bindService
void bindService(java.lang.String interfaceName, java.lang.Class<? extends ServiceModeBase> serviceMode, BoundServices serviceInfo, TypedWriteTransaction<Datastore.Configuration> tx)
-
unbindService
void unbindService(java.lang.String interfaceName, java.lang.Class<? extends ServiceModeBase> serviceMode, BoundServices serviceInfo)
-
getVlanInterfaces
java.util.List<org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.Interface> getVlanInterfaces()
-
getVxlanInterfaces
java.util.List<org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.Interface> getVxlanInterfaces()
-
getChildInterfaces
@Deprecated java.util.List<org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.Interface> getChildInterfaces(java.lang.String parentInterface)
Deprecated.UsegetChildInterfaces(ReadTransaction, String)
instead.Retrieve an interface's children.- Parameters:
parentInterface
- The parent interface.- Returns:
- The child interfaces.
-
getChildInterfaces
java.util.List<org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.Interface> getChildInterfaces(org.opendaylight.mdsal.binding.api.ReadTransaction tx, java.lang.String parentInterface) throws org.opendaylight.mdsal.common.api.ReadFailedException, java.util.concurrent.ExecutionException, java.lang.InterruptedException
Retrieve an interface's children.- Parameters:
tx
- The transaction to use.parentInterface
- The parent interface.- Returns:
- The child interfaces.
- Throws:
org.opendaylight.mdsal.common.api.ReadFailedException
- if an exception occurs while reading from the datastore.java.util.concurrent.ExecutionException
java.lang.InterruptedException
-
isExternalInterface
@Deprecated boolean isExternalInterface(java.lang.String interfaceName)
Deprecated.UseisExternalInterface(ReadTransaction, String)
instead.Determine whether an interface is external.- Parameters:
interfaceName
- The interface name.- Returns:
true
if the interface is external,false
if it isn't.
-
isExternalInterface
boolean isExternalInterface(org.opendaylight.mdsal.binding.api.ReadTransaction tx, java.lang.String interfaceName) throws org.opendaylight.mdsal.common.api.ReadFailedException, java.util.concurrent.ExecutionException, java.lang.InterruptedException
Determine whether an interface is external.- Parameters:
tx
- The transaction to use.interfaceName
- The interface name.- Returns:
true
if the interface is external,false
if it isn't.- Throws:
org.opendaylight.mdsal.common.api.ReadFailedException
- if an exception occurs while reading from the datastore.java.util.concurrent.ExecutionException
java.lang.InterruptedException
-
getPortNameForInterface
java.lang.String getPortNameForInterface(org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.NodeConnectorId nodeConnectorId, java.lang.String interfaceName)
-
getPortNameForInterface
java.lang.String getPortNameForInterface(java.lang.String dpnId, java.lang.String interfaceName)
-
getParentRefNameForInterface
java.lang.String getParentRefNameForInterface(java.lang.String interfaceName)
-
getTerminationPointCache
java.util.Map<java.lang.String,org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.ovsdb.rev150105.OvsdbTerminationPointAugmentation> getTerminationPointCache()
-
getBfdStateCache
java.util.Map<java.lang.String,org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.state.Interface.OperStatus> getBfdStateCache()
-
getTerminationPointForInterface
org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.ovsdb.rev150105.OvsdbTerminationPointAugmentation getTerminationPointForInterface(java.lang.String interfaceName)
-
getOvsdbBridgeForInterface
org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.ovsdb.rev150105.OvsdbBridgeAugmentation getOvsdbBridgeForInterface(java.lang.String interfaceName)
-
getOvsdbBridgeForNodeIid
org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.ovsdb.rev150105.OvsdbBridgeAugmentation getOvsdbBridgeForNodeIid(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node> nodeIid)
-
getPortsOnBridge
java.util.List<org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.ovsdb.rev150105.OvsdbTerminationPointAugmentation> getPortsOnBridge(org.opendaylight.yangtools.yang.common.Uint64 dpnId)
-
getTunnelPortsOnBridge
java.util.List<org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.ovsdb.rev150105.OvsdbTerminationPointAugmentation> getTunnelPortsOnBridge(org.opendaylight.yangtools.yang.common.Uint64 dpnId)
-
getPortsOnBridgeByType
java.util.Map<java.lang.Class<? extends org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.ovsdb.rev150105.InterfaceTypeBase>,java.util.List<org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.ovsdb.rev150105.OvsdbTerminationPointAugmentation>> getPortsOnBridgeByType(org.opendaylight.yangtools.yang.common.Uint64 dpnId)
-
updateInterfaceParentRef
void updateInterfaceParentRef(java.lang.String interfaceName, java.lang.String parentInterface)
-
updateInterfaceParentRef
void updateInterfaceParentRef(java.lang.String interfaceName, java.lang.String parentInterface, boolean readInterfaceBeforeWrite)
-
getLogicalTunnelSelectGroupId
long getLogicalTunnelSelectGroupId(int lportTag)
-
isItmDirectTunnelsEnabled
boolean isItmDirectTunnelsEnabled()
-
getBridgeRefEntryMap
java.util.Map getBridgeRefEntryMap()
-
-