Class InterfaceManagerCommonUtils


  • @Singleton
    public final class InterfaceManagerCommonUtils
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      void addBfdStateToCache​(java.lang.String interfaceName, org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.state.Interface.OperStatus operStatus)  
      void addInterfaceStateToCache​(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.state.Interface iface)  
      void addInterfaceToCache​(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.Interface iface)  
      void addStateEntry​(java.lang.String interfaceName, java.util.List<com.google.common.util.concurrent.ListenableFuture<java.lang.Void>> futures, org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.state.Interface ifState)  
      void addStateEntry​(TypedWriteTransaction<Datastore.Operational> tx, java.lang.String interfaceName, java.util.List<com.google.common.util.concurrent.ListenableFuture<java.lang.Void>> futures, org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.state.Interface ifState)  
      org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.state.Interface addStateEntry​(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.Interface interfaceInfo, java.lang.String interfaceName, TypedWriteTransaction<Datastore.Operational> tx, org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.PhysAddress physAddress, org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.state.Interface.OperStatus operStatus, org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.state.Interface.AdminStatus adminStatus, org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.NodeConnectorId nodeConnectorId)  
      void addTunnelIngressFlow​(TypedWriteTransaction<Datastore.Configuration> tx, IfTunnel tunnel, org.opendaylight.yangtools.yang.common.Uint64 dpnId, long portNo, java.lang.String interfaceName, int ifIndex)  
      void createInterfaceChildEntry​(@NonNull TypedWriteTransaction<Datastore.Configuration> tx, java.lang.String parentInterface, java.lang.String childInterface)  
      boolean createInterfaceChildEntryIfNotPresent​(TypedWriteTransaction<Datastore.Configuration> tx, java.lang.String parentInterface, java.lang.String childInterface, IfL2vlan.L2vlanMode l2vlanMode)  
      void createOrUpdateDpnToInterface​(org.opendaylight.yangtools.yang.common.Uint64 dpId, java.lang.String infName, java.lang.Class<? extends org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.InterfaceType> interfaceType)  
      static void deleteDpnToInterface​(org.opendaylight.yangtools.yang.common.Uint64 dpId, java.lang.String infName, TypedReadWriteTransaction<Datastore.Operational> tx)  
      void deleteInterfaceChildEntry​(java.lang.String parentInterface, java.lang.String childInterface)  
      void deleteInterfaceStateInformation​(java.lang.String interfaceName, TypedWriteTransaction<Datastore.Operational> transaction)  
      boolean deleteParentInterfaceEntry​(java.lang.String parentInterface)  
      static void deleteStateEntry​(TypedWriteTransaction<Datastore.Operational> tx, java.lang.String interfaceName)  
      java.util.List<InterfaceNameEntry> getAllInterfaces​(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> getAllTunnelInterfacesFromCache()  
      java.util.List<org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.Interface> getAllVlanInterfacesFromCache()  
      org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.state.Interface.OperStatus getBfdStateFromCache​(java.lang.String interfaceName)  
      java.util.concurrent.ConcurrentHashMap<java.lang.String,​org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.state.Interface.OperStatus> getBfdStateMap()  
      @Nullable org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.Interface getInterfaceFromConfigDS​(java.lang.String interfaceName)
      Deprecated.
      @Nullable org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.Interface getInterfaceFromConfigDS​(org.opendaylight.controller.md.sal.binding.api.ReadTransaction tx, java.lang.String interfaceName)  
      org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.Interface getInterfaceFromConfigDS​(org.opendaylight.controller.md.sal.binding.api.ReadTransaction tx, org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.InterfaceKey interfaceKey)  
      org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.Interface getInterfaceFromConfigDS​(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.InterfaceKey interfaceKey)
      Deprecated.
      static org.opendaylight.yangtools.yang.binding.InstanceIdentifier<org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.Interface> getInterfaceIdentifier​(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.InterfaceKey interfaceKey)  
      org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.state.Interface getInterfaceState​(java.lang.String interfaceName)
      This utility tries to fetch interface-state from cache first, and if not present tries to read it from operational DS.
      org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.state.Interface getInterfaceState​(TypedReadTransaction<Datastore.Operational> tx, java.lang.String interfaceName)  
      org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.state.Interface getInterfaceStateFromCache​(java.lang.String interfaceName)  
      org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.state.Interface getInterfaceStateFromOperDS​(java.lang.String interfaceName)  
      org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.state.Interface getInterfaceStateFromOperDS​(TypedReadTransaction<Datastore.Operational> tx, java.lang.String interfaceName)  
      org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.state.Interface getInterfaceStateFromOperDS​(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.state.Interface> ifStateId)
      Deprecated.
      org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.node.NodeConnector getNodeConnectorFromInventoryOperDS​(org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.NodeConnectorId nodeConnectorId)  
      static org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.state.Interface.OperStatus getOpState​(org.opendaylight.yang.gen.v1.urn.opendaylight.flow.inventory.rev130819.FlowCapableNodeConnector flowCapableNodeConnector)  
      static java.lang.String getPortNameForInterface​(java.lang.String dpnId, java.lang.String portName)  
      static java.lang.String getPortNameForInterface​(org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.NodeConnectorId nodeConnectorId, java.lang.String portName)  
      static java.lang.String getTunnelInterfaceFlowRef​(org.opendaylight.yangtools.yang.common.Uint64 dpnId, short tableId, java.lang.String ifName)  
      static boolean isK8SPort​(java.lang.String portName)  
      boolean isNodePresent​(org.opendaylight.controller.md.sal.binding.api.ReadTransaction tx, org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.NodeConnectorId nodeConnectorId)  
      static boolean isNovaOrTunnelPort​(java.lang.String portName)  
      static boolean isNovaPort​(java.lang.String portName)  
      static boolean isOfTunnelInterface​(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.Interface interfaceInfo)  
      static boolean isTrunkInterface​(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.Interface iface)  
      static boolean isTunnelInterface​(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.Interface interfaceInfo)  
      boolean isTunnelInternal​(java.lang.String interfaceName)  
      static boolean isTunnelPort​(java.lang.String portName)  
      static boolean isVlanInterface​(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.Interface interfaceInfo)  
      org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.state.Interface.OperStatus removeBfdStateFromCache​(java.lang.String interfaceName)  
      void removeFromInterfaceCache​(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.Interface iface)  
      void removeFromInterfaceStateCache​(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.state.Interface iface)  
      void removeTunnelIngressFlow​(TypedReadWriteTransaction<Datastore.Configuration> tx, IfTunnel tunnel, org.opendaylight.yangtools.yang.common.Uint64 dpnId, java.lang.String interfaceName)  
      static void setOpStateForInterface​(TypedWriteTransaction<Datastore.Operational> tx, java.lang.String interfaceName, org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.state.Interface.OperStatus opStatus)  
      static void updateOperStatus​(java.lang.String interfaceName, org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.state.Interface.OperStatus operStatus, TypedWriteTransaction<Datastore.Operational> transaction)  
      static void updateOpState​(TypedWriteTransaction<Datastore.Operational> tx, java.lang.String interfaceName, org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.state.Interface.OperStatus operStatus)  
      org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.state.Interface.OperStatus updateStateEntry​(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.Interface interfaceNew, TypedWriteTransaction<Datastore.Operational> transaction, org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.state.Interface ifState)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getBfdStateMap

        public java.util.concurrent.ConcurrentHashMap<java.lang.String,​org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.state.Interface.OperStatus> getBfdStateMap()
      • getNodeConnectorFromInventoryOperDS

        public org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.node.NodeConnector getNodeConnectorFromInventoryOperDS​(org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.NodeConnectorId nodeConnectorId)
      • isNodePresent

        public boolean isNodePresent​(org.opendaylight.controller.md.sal.binding.api.ReadTransaction tx,
                                     org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.NodeConnectorId nodeConnectorId)
                              throws org.opendaylight.controller.md.sal.common.api.data.ReadFailedException
        Throws:
        org.opendaylight.controller.md.sal.common.api.data.ReadFailedException
      • getInterfaceIdentifier

        public static org.opendaylight.yangtools.yang.binding.InstanceIdentifier<org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.Interface> getInterfaceIdentifier​(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.InterfaceKey interfaceKey)
      • getAllTunnelInterfacesFromCache

        public java.util.List<org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.Interface> getAllTunnelInterfacesFromCache()
      • getAllVlanInterfacesFromCache

        public java.util.List<org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.Interface> getAllVlanInterfacesFromCache()
      • getInterfaceFromConfigDS

        @Deprecated
        public @Nullable org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.Interface getInterfaceFromConfigDS​(java.lang.String interfaceName)
        Deprecated.
        Searches for an interface by its name.
        Parameters:
        interfaceName - name of the interface to search for
        Returns:
        the Interface object
      • getInterfaceFromConfigDS

        public @Nullable org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.Interface getInterfaceFromConfigDS​(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
      • getInterfaceFromConfigDS

        @Deprecated
        public org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.Interface getInterfaceFromConfigDS​(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.InterfaceKey interfaceKey)
        Deprecated.
      • getInterfaceFromConfigDS

        public org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.Interface getInterfaceFromConfigDS​(org.opendaylight.controller.md.sal.binding.api.ReadTransaction tx,
                                                                                                                                                org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.InterfaceKey interfaceKey)
                                                                                                                                         throws org.opendaylight.controller.md.sal.common.api.data.ReadFailedException
        Throws:
        org.opendaylight.controller.md.sal.common.api.data.ReadFailedException
      • getInterfaceStateFromCache

        public org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.state.Interface getInterfaceStateFromCache​(java.lang.String interfaceName)
      • getInterfaceState

        public org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.state.Interface getInterfaceState​(java.lang.String interfaceName)
        This utility tries to fetch interface-state from cache first, and if not present tries to read it from operational DS.
        Parameters:
        interfaceName - name of the logical interface.
        Returns:
        If the data at the supplied path exists, returns interfaces-state object; if the data at the supplied path does not exist, returns null;
      • getInterfaceState

        public org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.state.Interface getInterfaceState​(TypedReadTransaction<Datastore.Operational> tx,
                                                                                                                                               java.lang.String interfaceName)
                                                                                                                                        throws java.util.concurrent.ExecutionException,
                                                                                                                                               java.lang.InterruptedException
        Throws:
        java.util.concurrent.ExecutionException
        java.lang.InterruptedException
      • getInterfaceStateFromOperDS

        public org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.state.Interface getInterfaceStateFromOperDS​(java.lang.String interfaceName)
      • getInterfaceStateFromOperDS

        public org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.state.Interface getInterfaceStateFromOperDS​(TypedReadTransaction<Datastore.Operational> tx,
                                                                                                                                                         java.lang.String interfaceName)
                                                                                                                                                  throws java.util.concurrent.ExecutionException,
                                                                                                                                                         java.lang.InterruptedException
        Throws:
        java.util.concurrent.ExecutionException
        java.lang.InterruptedException
      • getInterfaceStateFromOperDS

        @Deprecated
        public org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.state.Interface getInterfaceStateFromOperDS​(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.state.Interface> ifStateId)
        Deprecated.
      • removeTunnelIngressFlow

        public void removeTunnelIngressFlow​(TypedReadWriteTransaction<Datastore.Configuration> tx,
                                            IfTunnel tunnel,
                                            org.opendaylight.yangtools.yang.common.Uint64 dpnId,
                                            java.lang.String interfaceName)
                                     throws java.util.concurrent.ExecutionException,
                                            java.lang.InterruptedException
        Throws:
        java.util.concurrent.ExecutionException
        java.lang.InterruptedException
      • getTunnelInterfaceFlowRef

        public static java.lang.String getTunnelInterfaceFlowRef​(org.opendaylight.yangtools.yang.common.Uint64 dpnId,
                                                                 short tableId,
                                                                 java.lang.String ifName)
      • setOpStateForInterface

        public static void setOpStateForInterface​(TypedWriteTransaction<Datastore.Operational> tx,
                                                  java.lang.String interfaceName,
                                                  org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.state.Interface.OperStatus opStatus)
      • deleteInterfaceChildEntry

        public void deleteInterfaceChildEntry​(java.lang.String parentInterface,
                                              java.lang.String childInterface)
      • updateStateEntry

        public org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.state.Interface.OperStatus updateStateEntry​(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.Interface interfaceNew,
                                                                                                                                                         TypedWriteTransaction<Datastore.Operational> transaction,
                                                                                                                                                         org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.state.Interface ifState)
      • getOpState

        public static org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.state.Interface.OperStatus getOpState​(org.opendaylight.yang.gen.v1.urn.opendaylight.flow.inventory.rev130819.FlowCapableNodeConnector flowCapableNodeConnector)
      • updateOperStatus

        public static void updateOperStatus​(java.lang.String interfaceName,
                                            org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.state.Interface.OperStatus operStatus,
                                            TypedWriteTransaction<Datastore.Operational> transaction)
      • addStateEntry

        public void addStateEntry​(java.lang.String interfaceName,
                                  java.util.List<com.google.common.util.concurrent.ListenableFuture<java.lang.Void>> futures,
                                  org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.state.Interface ifState)
      • addStateEntry

        public void addStateEntry​(TypedWriteTransaction<Datastore.Operational> tx,
                                  java.lang.String interfaceName,
                                  java.util.List<com.google.common.util.concurrent.ListenableFuture<java.lang.Void>> futures,
                                  org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.state.Interface ifState)
      • addStateEntry

        public org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.state.Interface addStateEntry​(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.Interface interfaceInfo,
                                                                                                                                           java.lang.String interfaceName,
                                                                                                                                           TypedWriteTransaction<Datastore.Operational> tx,
                                                                                                                                           org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.PhysAddress physAddress,
                                                                                                                                           org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.state.Interface.OperStatus operStatus,
                                                                                                                                           org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.state.Interface.AdminStatus adminStatus,
                                                                                                                                           org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.NodeConnectorId nodeConnectorId)
      • isTrunkInterface

        public static boolean isTrunkInterface​(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.Interface iface)
      • deleteParentInterfaceEntry

        public boolean deleteParentInterfaceEntry​(java.lang.String parentInterface)
      • updateOpState

        public static void updateOpState​(TypedWriteTransaction<Datastore.Operational> tx,
                                         java.lang.String interfaceName,
                                         org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.state.Interface.OperStatus operStatus)
      • isTunnelInterface

        public static boolean isTunnelInterface​(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.Interface interfaceInfo)
      • isOfTunnelInterface

        public static boolean isOfTunnelInterface​(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.Interface interfaceInfo)
      • isVlanInterface

        public static boolean isVlanInterface​(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.Interface interfaceInfo)
      • addInterfaceToCache

        public void addInterfaceToCache​(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.Interface iface)
      • removeFromInterfaceCache

        public void removeFromInterfaceCache​(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.Interface iface)
      • addInterfaceStateToCache

        public void addInterfaceStateToCache​(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.state.Interface iface)
      • removeFromInterfaceStateCache

        public void removeFromInterfaceStateCache​(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.state.Interface iface)
      • getBfdStateFromCache

        public org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.state.Interface.OperStatus getBfdStateFromCache​(java.lang.String interfaceName)
      • addBfdStateToCache

        public void addBfdStateToCache​(java.lang.String interfaceName,
                                       org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.state.Interface.OperStatus operStatus)
      • removeBfdStateFromCache

        public org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.state.Interface.OperStatus removeBfdStateFromCache​(java.lang.String interfaceName)
      • isNovaOrTunnelPort

        public static boolean isNovaOrTunnelPort​(java.lang.String portName)
      • isNovaPort

        public static boolean isNovaPort​(java.lang.String portName)
      • isTunnelPort

        public static boolean isTunnelPort​(java.lang.String portName)
      • isK8SPort

        public static boolean isK8SPort​(java.lang.String portName)
      • createOrUpdateDpnToInterface

        public void createOrUpdateDpnToInterface​(org.opendaylight.yangtools.yang.common.Uint64 dpId,
                                                 java.lang.String infName,
                                                 java.lang.Class<? extends org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.InterfaceType> interfaceType)
      • getAllInterfaces

        public java.util.List<InterfaceNameEntry> getAllInterfaces​(org.opendaylight.yangtools.yang.common.Uint64 dpnId)
      • deleteDpnToInterface

        public static void deleteDpnToInterface​(org.opendaylight.yangtools.yang.common.Uint64 dpId,
                                                java.lang.String infName,
                                                TypedReadWriteTransaction<Datastore.Operational> tx)
                                         throws java.util.concurrent.ExecutionException,
                                                java.lang.InterruptedException
        Throws:
        java.util.concurrent.ExecutionException
        java.lang.InterruptedException
      • getPortNameForInterface

        public static java.lang.String getPortNameForInterface​(org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.NodeConnectorId nodeConnectorId,
                                                               java.lang.String portName)
      • getPortNameForInterface

        public static java.lang.String getPortNameForInterface​(java.lang.String dpnId,
                                                               java.lang.String portName)
      • isTunnelInternal

        public boolean isTunnelInternal​(java.lang.String interfaceName)