Class InterfaceMetaUtils
- java.lang.Object
-
- org.opendaylight.genius.interfacemanager.commons.InterfaceMetaUtils
-
@Singleton public final class InterfaceMetaUtils extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description InterfaceMetaUtils(org.opendaylight.mdsal.binding.api.DataBroker dataBroker, IdManagerService idManager, BatchingUtils batchingUtils)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
addBridgeEntryToCache(BridgeEntry bridgeEntry)
void
addBridgeEntryToCache(org.opendaylight.yangtools.yang.common.Uint64 dpnId, BridgeEntry bridgeEntry)
void
addBridgeRefEntryToCache(BridgeRefEntry bridgeRefEntry)
void
addBridgeRefEntryToCache(org.opendaylight.yangtools.yang.common.Uint64 dpnId, BridgeRefEntry bridgeRefEntry)
static void
addBridgeRefToBridgeInterfaceEntry(org.opendaylight.yangtools.yang.common.Uint64 dpId, org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.ovsdb.rev150105.OvsdbBridgeRef ovsdbBridgeRef, org.opendaylight.mdsal.binding.util.TypedWriteTransaction<org.opendaylight.mdsal.binding.util.Datastore.Configuration> tx)
boolean
bridgeExists(BridgeRefEntry bridgeRefEntry)
void
createBridgeInterfaceEntryInConfigDS(org.opendaylight.yangtools.yang.common.Uint64 dpId, java.lang.String childInterface)
static void
createBridgeRefEntry(org.opendaylight.yangtools.yang.common.Uint64 dpnId, org.opendaylight.yangtools.yang.binding.InstanceIdentifier<?> bridgeIid, org.opendaylight.mdsal.binding.util.TypedWriteTransaction<org.opendaylight.mdsal.binding.util.Datastore.Operational> tx)
void
createLportTagInterfaceMap(java.lang.String infName, java.lang.Integer ifIndex)
static void
createTunnelToInterfaceMap(java.lang.String tunnelInstanceId, java.lang.String infName, org.opendaylight.mdsal.binding.util.TypedWriteTransaction<org.opendaylight.mdsal.binding.util.Datastore.Operational> transaction)
static void
createTunnelToInterfaceMap(java.lang.String infName, org.opendaylight.yangtools.yang.binding.InstanceIdentifier<org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node> nodeId, org.opendaylight.mdsal.binding.util.TypedWriteTransaction<org.opendaylight.mdsal.binding.util.Datastore.Operational> transaction, IfTunnel ifTunnel)
void
deleteBridgeInterfaceEntry(BridgeEntryKey bridgeEntryKey, java.util.Map<BridgeInterfaceEntryKey,BridgeInterfaceEntry> bridgeInterfaceEntries, org.opendaylight.yangtools.yang.binding.InstanceIdentifier<BridgeEntry> bridgeEntryIid, java.lang.String interfaceName)
static void
deleteBridgeRefEntry(org.opendaylight.yangtools.yang.common.Uint64 dpnId, org.opendaylight.mdsal.binding.util.TypedWriteTransaction<org.opendaylight.mdsal.binding.util.Datastore.Operational> tx)
BridgeEntry
getBridgeEntryFromCache(org.opendaylight.yangtools.yang.common.Uint64 dpnId)
BridgeEntry
getBridgeEntryFromConfigDS(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<BridgeEntry> bridgeEntryInstanceIdentifier)
BridgeEntry
getBridgeEntryFromConfigDS(org.opendaylight.yangtools.yang.common.Uint64 dpnId)
static org.opendaylight.yangtools.yang.binding.InstanceIdentifier<BridgeEntry>
getBridgeEntryIdentifier(BridgeEntryKey bridgeEntryKey)
static org.opendaylight.yangtools.yang.binding.InstanceIdentifier<BridgeInterfaceEntry>
getBridgeInterfaceEntryIdentifier(BridgeEntryKey bridgeEntryKey, BridgeInterfaceEntryKey bridgeInterfaceEntryKey)
BridgeRefEntry
getBridgeRefEntryFromCache(org.opendaylight.yangtools.yang.common.Uint64 dpnId)
BridgeRefEntry
getBridgeRefEntryFromOperationalDS(org.opendaylight.yangtools.yang.common.Uint64 dpId)
BridgeRefEntry
getBridgeRefEntryFromOperDS(org.opendaylight.yangtools.yang.common.Uint64 dpId)
static org.opendaylight.yangtools.yang.binding.InstanceIdentifier<BridgeRefEntry>
getBridgeRefEntryIdentifier(BridgeRefEntryKey bridgeRefEntryKey)
java.util.Map<org.opendaylight.yangtools.yang.common.Uint64,BridgeRefEntry>
getBridgeRefEntryMap()
BridgeRefEntry
getBridgeReferenceForInterface(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.Interface interfaceInfo)
InterfaceChildEntry
getInterfaceChildEntryFromConfigDS(InterfaceParentEntryKey interfaceParentEntryKey, InterfaceChildEntryKey interfaceChildEntryKey)
InterfaceChildEntry
getInterfaceChildEntryFromConfigDS(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<InterfaceChildEntry> intfChildIid)
static org.opendaylight.yangtools.yang.binding.InstanceIdentifier<InterfaceChildEntry>
getInterfaceChildEntryIdentifier(InterfaceParentEntryKey interfaceParentEntryKey, InterfaceChildEntryKey interfaceChildEntryKey)
static java.lang.String
getInterfaceForTunnelInstanceIdentifier(java.lang.String tunnelInstanceId, org.opendaylight.mdsal.binding.util.TypedReadTransaction<org.opendaylight.mdsal.binding.util.Datastore.Operational> tx)
InterfaceParentEntry
getInterfaceParentEntryFromConfigDS(java.lang.String interfaceName)
Deprecated.InterfaceParentEntry
getInterfaceParentEntryFromConfigDS(org.opendaylight.mdsal.binding.api.ReadTransaction tx, java.lang.String interfaceName)
InterfaceParentEntry
getInterfaceParentEntryFromConfigDS(org.opendaylight.mdsal.binding.api.ReadTransaction tx, InterfaceParentEntryKey interfaceParentEntryKey)
InterfaceParentEntry
getInterfaceParentEntryFromConfigDS(org.opendaylight.mdsal.binding.api.ReadTransaction tx, org.opendaylight.yangtools.yang.binding.InstanceIdentifier<InterfaceParentEntry> intfId)
InterfaceParentEntry
getInterfaceParentEntryFromConfigDS(InterfaceParentEntryKey interfaceParentEntryKey)
Deprecated.InterfaceParentEntry
getInterfaceParentEntryFromConfigDS(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<InterfaceParentEntry> intfId)
static org.opendaylight.yangtools.yang.binding.InstanceIdentifier<InterfaceParentEntry>
getInterfaceParentEntryIdentifier(InterfaceParentEntryKey interfaceParentEntryKey)
org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.ovsdb.rev150105.OvsdbBridgeRef
getOvsdbBridgeRef(org.opendaylight.yangtools.yang.common.Uint64 dpId)
java.util.Map<org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.node.TerminationPointKey,org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.node.TerminationPoint>
getTerminationPointsOnBridge(org.opendaylight.yangtools.yang.common.Uint64 dpnId)
void
removeFromBridgeEntryCache(BridgeEntry bridgeEntry)
void
removeFromBridgeEntryCache(org.opendaylight.yangtools.yang.common.Uint64 dpnId)
void
removeFromBridgeRefEntryCache(BridgeRefEntry bridgeRefEntry)
void
removeFromBridgeRefEntryCache(org.opendaylight.yangtools.yang.common.Uint64 dpnId)
int
removeLportTagInterfaceMap(org.opendaylight.mdsal.binding.api.WriteTransaction tx, java.lang.String infName)
int
removeLportTagInterfaceMap(org.opendaylight.mdsal.binding.util.TypedWriteTransaction<org.opendaylight.mdsal.binding.util.Datastore.Operational> tx, java.lang.String infName)
static void
removeTunnelToInterfaceMap(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node> nodeId, org.opendaylight.mdsal.binding.util.TypedWriteTransaction<org.opendaylight.mdsal.binding.util.Datastore.Operational> transaction, IfTunnel ifTunnel)
-
-
-
Constructor Detail
-
InterfaceMetaUtils
@Inject public InterfaceMetaUtils(org.opendaylight.mdsal.binding.api.DataBroker dataBroker, IdManagerService idManager, BatchingUtils batchingUtils)
-
-
Method Detail
-
getBridgeRefEntryIdentifier
public static org.opendaylight.yangtools.yang.binding.InstanceIdentifier<BridgeRefEntry> getBridgeRefEntryIdentifier(BridgeRefEntryKey bridgeRefEntryKey)
-
getBridgeRefEntryFromOperationalDS
public BridgeRefEntry getBridgeRefEntryFromOperationalDS(org.opendaylight.yangtools.yang.common.Uint64 dpId)
-
getBridgeRefEntryFromOperDS
public BridgeRefEntry getBridgeRefEntryFromOperDS(org.opendaylight.yangtools.yang.common.Uint64 dpId)
-
getOvsdbBridgeRef
public org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.ovsdb.rev150105.OvsdbBridgeRef getOvsdbBridgeRef(org.opendaylight.yangtools.yang.common.Uint64 dpId)
-
getBridgeReferenceForInterface
public BridgeRefEntry getBridgeReferenceForInterface(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.Interface interfaceInfo)
-
bridgeExists
public boolean bridgeExists(BridgeRefEntry bridgeRefEntry)
-
getBridgeEntryIdentifier
public static org.opendaylight.yangtools.yang.binding.InstanceIdentifier<BridgeEntry> getBridgeEntryIdentifier(BridgeEntryKey bridgeEntryKey)
-
getBridgeEntryFromConfigDS
public BridgeEntry getBridgeEntryFromConfigDS(org.opendaylight.yangtools.yang.common.Uint64 dpnId)
-
getBridgeEntryFromConfigDS
public BridgeEntry getBridgeEntryFromConfigDS(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<BridgeEntry> bridgeEntryInstanceIdentifier)
-
getBridgeInterfaceEntryIdentifier
public static org.opendaylight.yangtools.yang.binding.InstanceIdentifier<BridgeInterfaceEntry> getBridgeInterfaceEntryIdentifier(BridgeEntryKey bridgeEntryKey, BridgeInterfaceEntryKey bridgeInterfaceEntryKey)
-
createBridgeInterfaceEntryInConfigDS
public void createBridgeInterfaceEntryInConfigDS(org.opendaylight.yangtools.yang.common.Uint64 dpId, java.lang.String childInterface)
-
getInterfaceParentEntryIdentifier
public static org.opendaylight.yangtools.yang.binding.InstanceIdentifier<InterfaceParentEntry> getInterfaceParentEntryIdentifier(InterfaceParentEntryKey interfaceParentEntryKey)
-
getInterfaceChildEntryIdentifier
public static org.opendaylight.yangtools.yang.binding.InstanceIdentifier<InterfaceChildEntry> getInterfaceChildEntryIdentifier(InterfaceParentEntryKey interfaceParentEntryKey, InterfaceChildEntryKey interfaceChildEntryKey)
-
getInterfaceParentEntryFromConfigDS
@Deprecated public InterfaceParentEntry getInterfaceParentEntryFromConfigDS(java.lang.String interfaceName)
Deprecated.
-
getInterfaceParentEntryFromConfigDS
public InterfaceParentEntry getInterfaceParentEntryFromConfigDS(org.opendaylight.mdsal.binding.api.ReadTransaction tx, java.lang.String interfaceName) throws java.util.concurrent.ExecutionException, java.lang.InterruptedException
- Throws:
java.util.concurrent.ExecutionException
java.lang.InterruptedException
-
getInterfaceParentEntryFromConfigDS
@Deprecated public InterfaceParentEntry getInterfaceParentEntryFromConfigDS(InterfaceParentEntryKey interfaceParentEntryKey)
Deprecated.
-
getInterfaceParentEntryFromConfigDS
public InterfaceParentEntry getInterfaceParentEntryFromConfigDS(org.opendaylight.mdsal.binding.api.ReadTransaction tx, InterfaceParentEntryKey interfaceParentEntryKey) throws java.util.concurrent.ExecutionException, java.lang.InterruptedException
- Throws:
java.util.concurrent.ExecutionException
java.lang.InterruptedException
-
getInterfaceParentEntryFromConfigDS
public InterfaceParentEntry getInterfaceParentEntryFromConfigDS(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<InterfaceParentEntry> intfId)
-
getInterfaceParentEntryFromConfigDS
public InterfaceParentEntry getInterfaceParentEntryFromConfigDS(org.opendaylight.mdsal.binding.api.ReadTransaction tx, org.opendaylight.yangtools.yang.binding.InstanceIdentifier<InterfaceParentEntry> intfId) throws java.util.concurrent.ExecutionException, java.lang.InterruptedException
- Throws:
java.util.concurrent.ExecutionException
java.lang.InterruptedException
-
getInterfaceChildEntryFromConfigDS
public InterfaceChildEntry getInterfaceChildEntryFromConfigDS(InterfaceParentEntryKey interfaceParentEntryKey, InterfaceChildEntryKey interfaceChildEntryKey)
-
getInterfaceChildEntryFromConfigDS
public InterfaceChildEntry getInterfaceChildEntryFromConfigDS(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<InterfaceChildEntry> intfChildIid)
-
createLportTagInterfaceMap
public void createLportTagInterfaceMap(java.lang.String infName, java.lang.Integer ifIndex)
-
removeLportTagInterfaceMap
public int removeLportTagInterfaceMap(org.opendaylight.mdsal.binding.api.WriteTransaction tx, java.lang.String infName)
-
removeLportTagInterfaceMap
public int removeLportTagInterfaceMap(org.opendaylight.mdsal.binding.util.TypedWriteTransaction<org.opendaylight.mdsal.binding.util.Datastore.Operational> tx, java.lang.String infName)
-
addBridgeRefToBridgeInterfaceEntry
public static void addBridgeRefToBridgeInterfaceEntry(org.opendaylight.yangtools.yang.common.Uint64 dpId, org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.ovsdb.rev150105.OvsdbBridgeRef ovsdbBridgeRef, org.opendaylight.mdsal.binding.util.TypedWriteTransaction<org.opendaylight.mdsal.binding.util.Datastore.Configuration> tx)
-
createBridgeRefEntry
public static void createBridgeRefEntry(org.opendaylight.yangtools.yang.common.Uint64 dpnId, org.opendaylight.yangtools.yang.binding.InstanceIdentifier<?> bridgeIid, org.opendaylight.mdsal.binding.util.TypedWriteTransaction<org.opendaylight.mdsal.binding.util.Datastore.Operational> tx)
-
deleteBridgeRefEntry
public static void deleteBridgeRefEntry(org.opendaylight.yangtools.yang.common.Uint64 dpnId, org.opendaylight.mdsal.binding.util.TypedWriteTransaction<org.opendaylight.mdsal.binding.util.Datastore.Operational> tx)
-
createTunnelToInterfaceMap
public static void createTunnelToInterfaceMap(java.lang.String tunnelInstanceId, java.lang.String infName, org.opendaylight.mdsal.binding.util.TypedWriteTransaction<org.opendaylight.mdsal.binding.util.Datastore.Operational> transaction)
-
createTunnelToInterfaceMap
public static void createTunnelToInterfaceMap(java.lang.String infName, org.opendaylight.yangtools.yang.binding.InstanceIdentifier<org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node> nodeId, org.opendaylight.mdsal.binding.util.TypedWriteTransaction<org.opendaylight.mdsal.binding.util.Datastore.Operational> transaction, IfTunnel ifTunnel)
-
removeTunnelToInterfaceMap
public static void removeTunnelToInterfaceMap(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node> nodeId, org.opendaylight.mdsal.binding.util.TypedWriteTransaction<org.opendaylight.mdsal.binding.util.Datastore.Operational> transaction, IfTunnel ifTunnel)
-
getInterfaceForTunnelInstanceIdentifier
public static java.lang.String getInterfaceForTunnelInstanceIdentifier(java.lang.String tunnelInstanceId, org.opendaylight.mdsal.binding.util.TypedReadTransaction<org.opendaylight.mdsal.binding.util.Datastore.Operational> tx) throws java.util.concurrent.ExecutionException, java.lang.InterruptedException
- Throws:
java.util.concurrent.ExecutionException
java.lang.InterruptedException
-
deleteBridgeInterfaceEntry
public void deleteBridgeInterfaceEntry(BridgeEntryKey bridgeEntryKey, java.util.Map<BridgeInterfaceEntryKey,BridgeInterfaceEntry> bridgeInterfaceEntries, org.opendaylight.yangtools.yang.binding.InstanceIdentifier<BridgeEntry> bridgeEntryIid, java.lang.String interfaceName)
-
getTerminationPointsOnBridge
public java.util.Map<org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.node.TerminationPointKey,org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.node.TerminationPoint> getTerminationPointsOnBridge(org.opendaylight.yangtools.yang.common.Uint64 dpnId)
-
addBridgeEntryToCache
public void addBridgeEntryToCache(org.opendaylight.yangtools.yang.common.Uint64 dpnId, BridgeEntry bridgeEntry)
-
addBridgeEntryToCache
public void addBridgeEntryToCache(BridgeEntry bridgeEntry)
-
removeFromBridgeEntryCache
public void removeFromBridgeEntryCache(org.opendaylight.yangtools.yang.common.Uint64 dpnId)
-
removeFromBridgeEntryCache
public void removeFromBridgeEntryCache(BridgeEntry bridgeEntry)
-
getBridgeEntryFromCache
public BridgeEntry getBridgeEntryFromCache(org.opendaylight.yangtools.yang.common.Uint64 dpnId)
-
addBridgeRefEntryToCache
public void addBridgeRefEntryToCache(org.opendaylight.yangtools.yang.common.Uint64 dpnId, BridgeRefEntry bridgeRefEntry)
-
addBridgeRefEntryToCache
public void addBridgeRefEntryToCache(BridgeRefEntry bridgeRefEntry)
-
removeFromBridgeRefEntryCache
public void removeFromBridgeRefEntryCache(org.opendaylight.yangtools.yang.common.Uint64 dpnId)
-
removeFromBridgeRefEntryCache
public void removeFromBridgeRefEntryCache(BridgeRefEntry bridgeRefEntry)
-
getBridgeRefEntryFromCache
public BridgeRefEntry getBridgeRefEntryFromCache(org.opendaylight.yangtools.yang.common.Uint64 dpnId)
-
getBridgeRefEntryMap
public java.util.Map<org.opendaylight.yangtools.yang.common.Uint64,BridgeRefEntry> getBridgeRefEntryMap()
-
-