Class InterfaceMetaUtils


  • @Singleton
    public final class InterfaceMetaUtils
    extends java.lang.Object
    • Constructor Detail

      • InterfaceMetaUtils

        @Inject
        public InterfaceMetaUtils​(org.opendaylight.controller.md.sal.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)
      • 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)
      • getInterfaceParentEntryFromConfigDS

        @Deprecated
        public InterfaceParentEntry getInterfaceParentEntryFromConfigDS​(java.lang.String interfaceName)
        Deprecated.
      • getInterfaceParentEntryFromConfigDS

        public InterfaceParentEntry getInterfaceParentEntryFromConfigDS​(org.opendaylight.controller.md.sal.binding.api.ReadTransaction tx,
                                                                        java.lang.String interfaceName)
                                                                 throws org.opendaylight.controller.md.sal.common.api.data.ReadFailedException
        Throws:
        org.opendaylight.controller.md.sal.common.api.data.ReadFailedException
      • getInterfaceParentEntryFromConfigDS

        public InterfaceParentEntry getInterfaceParentEntryFromConfigDS​(org.opendaylight.controller.md.sal.binding.api.ReadTransaction tx,
                                                                        InterfaceParentEntryKey interfaceParentEntryKey)
                                                                 throws org.opendaylight.controller.md.sal.common.api.data.ReadFailedException
        Throws:
        org.opendaylight.controller.md.sal.common.api.data.ReadFailedException
      • getInterfaceParentEntryFromConfigDS

        public InterfaceParentEntry getInterfaceParentEntryFromConfigDS​(org.opendaylight.controller.md.sal.binding.api.ReadTransaction tx,
                                                                        org.opendaylight.yangtools.yang.binding.InstanceIdentifier<InterfaceParentEntry> intfId)
                                                                 throws org.opendaylight.controller.md.sal.common.api.data.ReadFailedException
        Throws:
        org.opendaylight.controller.md.sal.common.api.data.ReadFailedException
      • 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.controller.md.sal.binding.api.WriteTransaction 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,
                                                              TypedWriteTransaction<Datastore.Configuration> tx)
      • createBridgeRefEntry

        public static void createBridgeRefEntry​(org.opendaylight.yangtools.yang.common.Uint64 dpnId,
                                                org.opendaylight.yangtools.yang.binding.InstanceIdentifier<?> bridgeIid,
                                                TypedWriteTransaction<Datastore.Operational> tx)
      • 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,
                                                      TypedWriteTransaction<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,
                                                      TypedWriteTransaction<Datastore.Operational> transaction,
                                                      IfTunnel ifTunnel)
      • getInterfaceForTunnelInstanceIdentifier

        public static java.lang.String getInterfaceForTunnelInstanceIdentifier​(java.lang.String tunnelInstanceId,
                                                                               TypedReadTransaction<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.List<BridgeInterfaceEntry> bridgeInterfaceEntries,
                                               org.opendaylight.yangtools.yang.binding.InstanceIdentifier<BridgeEntry> bridgeEntryIid,
                                               java.lang.String interfaceName)
      • getTerminationPointsOnBridge

        public java.util.List<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 getBridgeRefEntryMap()