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 voidaddBridgeEntryToCache(BridgeEntry bridgeEntry)voidaddBridgeEntryToCache(org.opendaylight.yangtools.yang.common.Uint64 dpnId, BridgeEntry bridgeEntry)voidaddBridgeRefEntryToCache(BridgeRefEntry bridgeRefEntry)voidaddBridgeRefEntryToCache(org.opendaylight.yangtools.yang.common.Uint64 dpnId, BridgeRefEntry bridgeRefEntry)static voidaddBridgeRefToBridgeInterfaceEntry(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)booleanbridgeExists(BridgeRefEntry bridgeRefEntry)voidcreateBridgeInterfaceEntryInConfigDS(org.opendaylight.yangtools.yang.common.Uint64 dpId, java.lang.String childInterface)static voidcreateBridgeRefEntry(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)voidcreateLportTagInterfaceMap(java.lang.String infName, java.lang.Integer ifIndex)static voidcreateTunnelToInterfaceMap(java.lang.String tunnelInstanceId, java.lang.String infName, org.opendaylight.mdsal.binding.util.TypedWriteTransaction<org.opendaylight.mdsal.binding.util.Datastore.Operational> transaction)static voidcreateTunnelToInterfaceMap(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)voiddeleteBridgeInterfaceEntry(BridgeEntryKey bridgeEntryKey, java.util.Map<BridgeInterfaceEntryKey,BridgeInterfaceEntry> bridgeInterfaceEntries, org.opendaylight.yangtools.yang.binding.InstanceIdentifier<BridgeEntry> bridgeEntryIid, java.lang.String interfaceName)static voiddeleteBridgeRefEntry(org.opendaylight.yangtools.yang.common.Uint64 dpnId, org.opendaylight.mdsal.binding.util.TypedWriteTransaction<org.opendaylight.mdsal.binding.util.Datastore.Operational> tx)BridgeEntrygetBridgeEntryFromCache(org.opendaylight.yangtools.yang.common.Uint64 dpnId)BridgeEntrygetBridgeEntryFromConfigDS(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<BridgeEntry> bridgeEntryInstanceIdentifier)BridgeEntrygetBridgeEntryFromConfigDS(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)BridgeRefEntrygetBridgeRefEntryFromCache(org.opendaylight.yangtools.yang.common.Uint64 dpnId)BridgeRefEntrygetBridgeRefEntryFromOperationalDS(org.opendaylight.yangtools.yang.common.Uint64 dpId)BridgeRefEntrygetBridgeRefEntryFromOperDS(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()BridgeRefEntrygetBridgeReferenceForInterface(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.Interface interfaceInfo)InterfaceChildEntrygetInterfaceChildEntryFromConfigDS(InterfaceParentEntryKey interfaceParentEntryKey, InterfaceChildEntryKey interfaceChildEntryKey)InterfaceChildEntrygetInterfaceChildEntryFromConfigDS(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<InterfaceChildEntry> intfChildIid)static org.opendaylight.yangtools.yang.binding.InstanceIdentifier<InterfaceChildEntry>getInterfaceChildEntryIdentifier(InterfaceParentEntryKey interfaceParentEntryKey, InterfaceChildEntryKey interfaceChildEntryKey)static java.lang.StringgetInterfaceForTunnelInstanceIdentifier(java.lang.String tunnelInstanceId, org.opendaylight.mdsal.binding.util.TypedReadTransaction<org.opendaylight.mdsal.binding.util.Datastore.Operational> tx)InterfaceParentEntrygetInterfaceParentEntryFromConfigDS(java.lang.String interfaceName)Deprecated.InterfaceParentEntrygetInterfaceParentEntryFromConfigDS(org.opendaylight.mdsal.binding.api.ReadTransaction tx, java.lang.String interfaceName)InterfaceParentEntrygetInterfaceParentEntryFromConfigDS(org.opendaylight.mdsal.binding.api.ReadTransaction tx, InterfaceParentEntryKey interfaceParentEntryKey)InterfaceParentEntrygetInterfaceParentEntryFromConfigDS(org.opendaylight.mdsal.binding.api.ReadTransaction tx, org.opendaylight.yangtools.yang.binding.InstanceIdentifier<InterfaceParentEntry> intfId)InterfaceParentEntrygetInterfaceParentEntryFromConfigDS(InterfaceParentEntryKey interfaceParentEntryKey)Deprecated.InterfaceParentEntrygetInterfaceParentEntryFromConfigDS(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.OvsdbBridgeRefgetOvsdbBridgeRef(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)voidremoveFromBridgeEntryCache(BridgeEntry bridgeEntry)voidremoveFromBridgeEntryCache(org.opendaylight.yangtools.yang.common.Uint64 dpnId)voidremoveFromBridgeRefEntryCache(BridgeRefEntry bridgeRefEntry)voidremoveFromBridgeRefEntryCache(org.opendaylight.yangtools.yang.common.Uint64 dpnId)intremoveLportTagInterfaceMap(org.opendaylight.mdsal.binding.api.WriteTransaction tx, java.lang.String infName)intremoveLportTagInterfaceMap(org.opendaylight.mdsal.binding.util.TypedWriteTransaction<org.opendaylight.mdsal.binding.util.Datastore.Operational> tx, java.lang.String infName)static voidremoveTunnelToInterfaceMap(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.ExecutionExceptionjava.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.ExecutionExceptionjava.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.ExecutionExceptionjava.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.ExecutionExceptionjava.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()
 
 - 
 
 -