Class ItmUtils


  • public final class ItmUtils
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      static void addTerminatingServiceTable​(org.opendaylight.mdsal.binding.util.TypedReadWriteTransaction<org.opendaylight.mdsal.binding.util.Datastore.Configuration> tx, org.opendaylight.yangtools.yang.common.Uint64 dpnId, IMdsalApiManager mdsalManager)  
      static void addTransportZoneMembership​(java.util.List<TzMembership> zones, java.lang.String zoneName)  
      static ExternalTunnel buildExternalTunnel​(java.lang.String srcNode, java.lang.String dstNode, java.lang.Class<? extends TunnelTypeBase> tunType, java.lang.String trunkInterfaceName)  
      static org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.Interface buildHwTunnelInterface​(java.lang.String tunnelIfName, java.lang.String desc, boolean enabled, java.lang.String topoId, java.lang.String nodeId, java.lang.Class<? extends TunnelTypeBase> tunType, org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress srcIp, org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress destIp, org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress gwIp, java.lang.Boolean monitorEnabled, java.lang.Class<? extends TunnelMonitoringTypeBase> monitorProtocol, java.lang.Integer monitorInterval)  
      static org.opendaylight.yangtools.yang.binding.InstanceIdentifier<org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.Interface> buildId​(java.lang.String interfaceName)  
      static InternalTunnel buildInternalTunnel​(org.opendaylight.yangtools.yang.common.Uint64 srcDpnId, org.opendaylight.yangtools.yang.common.Uint64 dstDpnId, java.lang.Class<? extends TunnelTypeBase> tunType, java.lang.String trunkInterfaceName)  
      static org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.Interface buildLogicalTunnelInterface​(org.opendaylight.yangtools.yang.common.Uint64 dpn, java.lang.String ifName, java.lang.String desc, boolean enabled)  
      static org.opendaylight.yangtools.yang.binding.InstanceIdentifier<org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.state.Interface> buildStateInterfaceId​(java.lang.String interfaceName)  
      static org.opendaylight.yangtools.yang.binding.InstanceIdentifier<OfTep> buildStateOfTepListId​(OfTepKey ofTepKey)  
      static StateTunnelList buildStateTunnelList​(StateTunnelListKey tlKey, java.lang.String name, boolean state, TunnelOperStatus tunOpStatus, IInterfaceManager ifaceManager, org.opendaylight.mdsal.binding.api.DataBroker broker)  
      static org.opendaylight.yangtools.yang.binding.InstanceIdentifier<StateTunnelList> buildStateTunnelListId​(StateTunnelListKey tlKey)  
      static org.opendaylight.yangtools.yang.binding.InstanceIdentifier<IfTunnel> buildTunnelId​(java.lang.String ifName)  
      static org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.Interface buildTunnelInterface​(org.opendaylight.yangtools.yang.common.Uint64 dpn, java.lang.String ifName, java.lang.String desc, boolean enabled, java.lang.Class<? extends TunnelTypeBase> tunType, org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress localIp, org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress remoteIp, boolean internal, java.lang.Boolean monitorEnabled, java.lang.Class<? extends TunnelMonitoringTypeBase> monitorProtocol, java.lang.Integer monitorInterval, boolean useOfTunnel, java.lang.String parentIfaceName, java.util.List<TunnelOptions> tunnelOptions)  
      static org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.Interface buildTunnelInterface​(org.opendaylight.yangtools.yang.common.Uint64 dpn, java.lang.String ifName, java.lang.String desc, boolean enabled, java.lang.Class<? extends TunnelTypeBase> tunType, org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress localIp, org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress remoteIp, boolean internal, java.lang.Boolean monitorEnabled, java.lang.Class<? extends TunnelMonitoringTypeBase> monitorProtocol, java.lang.Integer monitorInterval, boolean useOfTunnel, java.util.List<TunnelOptions> tunOptions)  
      static java.util.List<TunnelOptions> buildTunnelOptions​(TunnelEndPoints tep, ItmConfig itmConfig)  
      static java.lang.Class<? extends TunnelTypeBase> convertStringToTunnelType​(java.lang.String tunnelType)  
      static java.lang.String convertTunnelTypetoString​(java.lang.Class<? extends TunnelTypeBase> tunType)  
      static OfDpnTep createDpnOFTepInfo​(org.opendaylight.yangtools.yang.common.Uint64 dpnID, org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress ipAddress, java.lang.String ofPortName, java.lang.Class<? extends TunnelTypeBase> tunnelType)  
      static DPNTEPsInfo createDPNTepInfo​(org.opendaylight.yangtools.yang.common.Uint64 dpId, java.util.List<TunnelEndPoints> endpoints)  
      static TunnelEndPoints createDummyTunnelEndPoints​(org.opendaylight.yangtools.yang.common.Uint64 dpnID, org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress ipAddress, boolean ofTunnel, java.lang.String tos, java.util.List<TzMembership> zones, java.lang.Class<? extends TunnelTypeBase> tunnelType, java.lang.String port, int vlanID)  
      static @NonNull HwVtep createHwVtepObject​(java.lang.String topoId, java.lang.String nodeId, org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress ipAddress, java.lang.Class<? extends TunnelTypeBase> tunneltype, TransportZone transportZone)  
      static java.util.List<TzMembership> createTransportZoneMembership​(java.lang.String zoneName)  
      static TunnelEndPoints createTunnelEndPoints​(org.opendaylight.yangtools.yang.common.Uint64 dpnId, org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress ipAddress, java.lang.String portName, boolean isOfTunnel, int vlanId, java.util.List<TzMembership> zones, java.lang.Class<? extends TunnelTypeBase> tunnelType, java.lang.String tos)  
      static void deleteTransportZoneFromConfigDS​(java.lang.String tzName, org.opendaylight.mdsal.binding.api.DataBroker dataBroker)
      Deletes the transport zone from Configuration datastore.
      static boolean falseIfNull​(java.lang.Boolean value)  
      static java.lang.String generateOfPortName​(org.opendaylight.yangtools.yang.common.Uint64 dpId, org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress tepIp, java.lang.String tunnelType)  
      static java.util.Map<InternalTunnelKey,​InternalTunnel> getAllInternalTunnels​(org.opendaylight.mdsal.binding.api.DataBroker dataBroker)  
      static java.lang.String getBridgeDpid​(org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node node, java.lang.String bridge, org.opendaylight.mdsal.binding.api.DataBroker dataBroker)
      Gets the bridge datapath ID from Network topology Node's OvsdbBridgeAugmentation, in the Operational DS.
      static java.util.List<org.opendaylight.yangtools.yang.common.Uint64> getDpIdFromTransportzone​(org.opendaylight.mdsal.binding.api.DataBroker dataBroker, java.lang.String tzone)  
      static org.opendaylight.yangtools.yang.binding.InstanceIdentifier<DPNTEPsInfo> getDpnTepInstance​(org.opendaylight.yangtools.yang.common.Uint64 dpIdKey)  
      static java.util.List<DPNTEPsInfo> getDpnTepListFromDpnId​(DPNTEPsInfoCache dpnTEPsInfoCache, java.util.List<org.opendaylight.yangtools.yang.common.Uint64> dpnIds)  
      static java.util.List<DPNTEPsInfo> getDpnTEPsInfos​(org.opendaylight.mdsal.binding.api.DataBroker dataBroker)  
      static org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpPrefix getDummySubnet()
      Returns the dummy subnet (255.255.255.255/32) as IpPrefix object.
      static ExternalTunnel getExternalTunnel​(java.lang.String interfaceName, org.opendaylight.mdsal.binding.api.DataBroker broker)  
      static ExternalTunnel getExternalTunnelbyExternalTunnelKey​(ExternalTunnelKey externalTunnelKey, org.opendaylight.yangtools.yang.binding.InstanceIdentifier<ExternalTunnel> path, org.opendaylight.mdsal.binding.api.DataBroker dataBroker)  
      static ExternalTunnelKey getExternalTunnelKey​(java.lang.String dst, java.lang.String src, java.lang.Class<? extends TunnelTypeBase> tunType)  
      static java.lang.String getHwParentIf​(java.lang.String topoId, java.lang.String srcNodeid)  
      static java.net.InetAddress getInetAddressFromIpAddress​(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress ip)  
      static org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.Interface getInterface​(java.lang.String name, IInterfaceManager ifaceManager)  
      static java.lang.String getInterfaceName​(org.opendaylight.yangtools.yang.common.Uint64 datapathid, java.lang.String portName, java.lang.Integer vlanId)
      Deprecated.
      static InternalTunnel getInternalTunnel​(java.lang.String interfaceName, org.opendaylight.mdsal.binding.api.DataBroker broker)  
      static @NonNull java.util.Optional<InternalTunnel> getInternalTunnelFromDS​(org.opendaylight.yangtools.yang.common.Uint64 srcDpn, org.opendaylight.yangtools.yang.common.Uint64 destDpn, java.lang.Class<? extends TunnelTypeBase> type, org.opendaylight.mdsal.binding.api.DataBroker dataBroker)  
      static @NonNull java.util.List<java.lang.String> getInternalTunnelInterfaces​(org.opendaylight.mdsal.binding.api.DataBroker dataBroker)  
      static java.util.Map<InternalTunnelKey,​InternalTunnel> getInternalTunnelsFromCache​(org.opendaylight.mdsal.binding.api.DataBroker dataBroker)  
      static java.util.List<TzMembership> getIntersection​(java.util.Map<TzMembershipKey,​TzMembership> list1, java.util.Map<TzMembershipKey,​TzMembership> list2)  
      static java.lang.String getLogicalTunnelGroupName​(org.opendaylight.yangtools.yang.common.Uint64 srcDpnId, org.opendaylight.yangtools.yang.common.Uint64 destDpnId)  
      static @NonNull java.util.Map<TzMembershipKey,​TzMembership> getOriginalTzMembership​(TunnelEndPoints srcTep, org.opendaylight.yangtools.yang.common.Uint64 dpnId, java.util.Collection<DPNTEPsInfo> meshedDpnList)  
      static org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node getOvsdbNode​(org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.ovsdb.rev150105.OvsdbBridgeAugmentation bridgeAugmentation, org.opendaylight.mdsal.binding.api.DataBroker dataBroker)
      Gets the Network topology Node from Operational Datastore based on Bridge Augmentation.
      static java.lang.String getStrDatapathId​(org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.ovsdb.rev150105.OvsdbBridgeAugmentation augmentedNode)
      Gets the bridge datapath ID in string form from Network topology Node's OvsdbBridgeAugmentation in the Operational DS.
      static java.util.List<TunnelEndPoints> getTEPsForDpn​(org.opendaylight.yangtools.yang.common.Uint64 srcDpn, java.util.Collection<DPNTEPsInfo> dpnList)  
      static TransportZone getTransportZoneFromConfigDS​(java.lang.String tzName, org.opendaylight.mdsal.binding.api.DataBroker dataBroker)
      Returns the transport zone from Configuration datastore.
      static TransportZone getTransportZoneOfVtep​(org.opendaylight.yangtools.yang.common.Uint64 dpid, org.opendaylight.mdsal.binding.api.DataBroker dataBroker)
      Returns the transport zone of vtep from Configuration datastore.
      static java.lang.String getTrunkInterfaceName​(java.lang.String parentInterfaceName, java.lang.String localHostName, java.lang.String remoteHostName, java.lang.String tunnelType)  
      static StateTunnelListKey getTunnelStateKey​(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.state.Interface iface)  
      static java.lang.Class<? extends TunnelTypeBase> getTunnelType​(java.lang.String tunnelType)
      Validates the tunnelType argument and returnsTunnelTypeBase class object corresponding to tunnelType obtained in String format.
      static org.opendaylight.yangtools.yang.binding.InstanceIdentifier<TransportZone> getTZInstanceIdentifier​(java.lang.String tzName)  
      static TepsInNotHostedTransportZone getUnknownTransportZoneFromITMOperDS​(java.lang.String unknownTz, org.opendaylight.mdsal.binding.api.DataBroker dataBroker)
      Gets the transport zone in TepsNotHosted list in the Operational Datastore, based on transport zone name.
      static <T> boolean isEmpty​(java.util.Collection<T> collection)  
      static boolean isItmIfType​(java.lang.Class<? extends org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.InterfaceType> ifType)  
      static boolean isTunnelAggregationUsed​(java.lang.Class<? extends TunnelTypeBase> tunType)  
      static <T extends org.opendaylight.yangtools.yang.binding.DataObject>
      java.util.Optional<T>
      read​(org.opendaylight.mdsal.common.api.LogicalDatastoreType datastoreType, org.opendaylight.yangtools.yang.binding.InstanceIdentifier<T> path, org.opendaylight.mdsal.binding.api.DataBroker broker)
      static void releaseIdForTrunkInterfaceName​(java.lang.String parentInterfaceName, java.lang.String localHostName, java.lang.String remoteHostName, java.lang.String tunnelType)  
      static void removeTerminatingServiceTable​(org.opendaylight.mdsal.binding.util.TypedReadWriteTransaction<org.opendaylight.mdsal.binding.util.Datastore.Configuration> tx, org.opendaylight.yangtools.yang.common.Uint64 dpnId, IMdsalApiManager mdsalManager)  
      static java.util.List<TzMembership> removeTransportZoneMembership​(TunnelEndPoints endPts, java.util.Map<TzMembershipKey,​TzMembership> zones)  
      static <T extends org.opendaylight.yangtools.yang.binding.DataObject>
      void
      syncWrite​(org.opendaylight.mdsal.common.api.LogicalDatastoreType datastoreType, org.opendaylight.yangtools.yang.binding.InstanceIdentifier<T> path, T data, org.opendaylight.mdsal.binding.api.DataBroker broker)
      • Methods inherited from class java.lang.Object

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

      • ITM_CACHE

        public static final ItmCache ITM_CACHE
      • TUNNEL_TYPE_MAP

        public static final com.google.common.collect.ImmutableMap<java.lang.String,​java.lang.Class<? extends TunnelTypeBase>> TUNNEL_TYPE_MAP
      • DEFAULT_WRITE_CALLBACK

        public static final com.google.common.util.concurrent.FutureCallback<java.lang.Object> DEFAULT_WRITE_CALLBACK
    • Method Detail

      • getInterfaceName

        @Deprecated
        public static java.lang.String getInterfaceName​(org.opendaylight.yangtools.yang.common.Uint64 datapathid,
                                                        java.lang.String portName,
                                                        java.lang.Integer vlanId)
        Deprecated.
      • getTrunkInterfaceName

        public static java.lang.String getTrunkInterfaceName​(java.lang.String parentInterfaceName,
                                                             java.lang.String localHostName,
                                                             java.lang.String remoteHostName,
                                                             java.lang.String tunnelType)
      • releaseIdForTrunkInterfaceName

        public static void releaseIdForTrunkInterfaceName​(java.lang.String parentInterfaceName,
                                                          java.lang.String localHostName,
                                                          java.lang.String remoteHostName,
                                                          java.lang.String tunnelType)
      • getLogicalTunnelGroupName

        public static java.lang.String getLogicalTunnelGroupName​(org.opendaylight.yangtools.yang.common.Uint64 srcDpnId,
                                                                 org.opendaylight.yangtools.yang.common.Uint64 destDpnId)
      • getInetAddressFromIpAddress

        public static java.net.InetAddress getInetAddressFromIpAddress​(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress ip)
      • getDpnTepInstance

        public static org.opendaylight.yangtools.yang.binding.InstanceIdentifier<DPNTEPsInfo> getDpnTepInstance​(org.opendaylight.yangtools.yang.common.Uint64 dpIdKey)
      • createDPNTepInfo

        public static DPNTEPsInfo createDPNTepInfo​(org.opendaylight.yangtools.yang.common.Uint64 dpId,
                                                   java.util.List<TunnelEndPoints> endpoints)
      • createTunnelEndPoints

        public static TunnelEndPoints createTunnelEndPoints​(org.opendaylight.yangtools.yang.common.Uint64 dpnId,
                                                            org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress ipAddress,
                                                            java.lang.String portName,
                                                            boolean isOfTunnel,
                                                            int vlanId,
                                                            java.util.List<TzMembership> zones,
                                                            java.lang.Class<? extends TunnelTypeBase> tunnelType,
                                                            java.lang.String tos)
      • createDummyTunnelEndPoints

        public static TunnelEndPoints createDummyTunnelEndPoints​(org.opendaylight.yangtools.yang.common.Uint64 dpnID,
                                                                 org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress ipAddress,
                                                                 boolean ofTunnel,
                                                                 java.lang.String tos,
                                                                 java.util.List<TzMembership> zones,
                                                                 java.lang.Class<? extends TunnelTypeBase> tunnelType,
                                                                 java.lang.String port,
                                                                 int vlanID)
      • buildId

        public static org.opendaylight.yangtools.yang.binding.InstanceIdentifier<org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.Interface> buildId​(java.lang.String interfaceName)
      • buildTunnelId

        public static org.opendaylight.yangtools.yang.binding.InstanceIdentifier<IfTunnel> buildTunnelId​(java.lang.String ifName)
      • buildLogicalTunnelInterface

        public static org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.Interface buildLogicalTunnelInterface​(org.opendaylight.yangtools.yang.common.Uint64 dpn,
                                                                                                                                                          java.lang.String ifName,
                                                                                                                                                          java.lang.String desc,
                                                                                                                                                          boolean enabled)
      • buildTunnelInterface

        public static org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.Interface buildTunnelInterface​(org.opendaylight.yangtools.yang.common.Uint64 dpn,
                                                                                                                                                   java.lang.String ifName,
                                                                                                                                                   java.lang.String desc,
                                                                                                                                                   boolean enabled,
                                                                                                                                                   java.lang.Class<? extends TunnelTypeBase> tunType,
                                                                                                                                                   org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress localIp,
                                                                                                                                                   org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress remoteIp,
                                                                                                                                                   boolean internal,
                                                                                                                                                   java.lang.Boolean monitorEnabled,
                                                                                                                                                   java.lang.Class<? extends TunnelMonitoringTypeBase> monitorProtocol,
                                                                                                                                                   java.lang.Integer monitorInterval,
                                                                                                                                                   boolean useOfTunnel,
                                                                                                                                                   java.util.List<TunnelOptions> tunOptions)
      • buildTunnelInterface

        public static org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.Interface buildTunnelInterface​(org.opendaylight.yangtools.yang.common.Uint64 dpn,
                                                                                                                                                   java.lang.String ifName,
                                                                                                                                                   java.lang.String desc,
                                                                                                                                                   boolean enabled,
                                                                                                                                                   java.lang.Class<? extends TunnelTypeBase> tunType,
                                                                                                                                                   org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress localIp,
                                                                                                                                                   org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress remoteIp,
                                                                                                                                                   boolean internal,
                                                                                                                                                   java.lang.Boolean monitorEnabled,
                                                                                                                                                   java.lang.Class<? extends TunnelMonitoringTypeBase> monitorProtocol,
                                                                                                                                                   java.lang.Integer monitorInterval,
                                                                                                                                                   boolean useOfTunnel,
                                                                                                                                                   java.lang.String parentIfaceName,
                                                                                                                                                   java.util.List<TunnelOptions> tunnelOptions)
      • buildHwTunnelInterface

        public static org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.Interface buildHwTunnelInterface​(java.lang.String tunnelIfName,
                                                                                                                                                     java.lang.String desc,
                                                                                                                                                     boolean enabled,
                                                                                                                                                     java.lang.String topoId,
                                                                                                                                                     java.lang.String nodeId,
                                                                                                                                                     java.lang.Class<? extends TunnelTypeBase> tunType,
                                                                                                                                                     org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress srcIp,
                                                                                                                                                     org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress destIp,
                                                                                                                                                     org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress gwIp,
                                                                                                                                                     java.lang.Boolean monitorEnabled,
                                                                                                                                                     java.lang.Class<? extends TunnelMonitoringTypeBase> monitorProtocol,
                                                                                                                                                     java.lang.Integer monitorInterval)
      • buildInternalTunnel

        public static InternalTunnel buildInternalTunnel​(org.opendaylight.yangtools.yang.common.Uint64 srcDpnId,
                                                         org.opendaylight.yangtools.yang.common.Uint64 dstDpnId,
                                                         java.lang.Class<? extends TunnelTypeBase> tunType,
                                                         java.lang.String trunkInterfaceName)
      • buildExternalTunnel

        public static ExternalTunnel buildExternalTunnel​(java.lang.String srcNode,
                                                         java.lang.String dstNode,
                                                         java.lang.Class<? extends TunnelTypeBase> tunType,
                                                         java.lang.String trunkInterfaceName)
      • getDpnTepListFromDpnId

        public static java.util.List<DPNTEPsInfo> getDpnTepListFromDpnId​(DPNTEPsInfoCache dpnTEPsInfoCache,
                                                                         java.util.List<org.opendaylight.yangtools.yang.common.Uint64> dpnIds)
      • addTerminatingServiceTable

        public static void addTerminatingServiceTable​(org.opendaylight.mdsal.binding.util.TypedReadWriteTransaction<org.opendaylight.mdsal.binding.util.Datastore.Configuration> tx,
                                                      org.opendaylight.yangtools.yang.common.Uint64 dpnId,
                                                      IMdsalApiManager mdsalManager)
      • removeTerminatingServiceTable

        public static void removeTerminatingServiceTable​(org.opendaylight.mdsal.binding.util.TypedReadWriteTransaction<org.opendaylight.mdsal.binding.util.Datastore.Configuration> tx,
                                                         org.opendaylight.yangtools.yang.common.Uint64 dpnId,
                                                         IMdsalApiManager mdsalManager)
      • isEmpty

        public static <T> boolean isEmpty​(java.util.Collection<T> collection)
      • createHwVtepObject

        public static @NonNull HwVtep createHwVtepObject​(java.lang.String topoId,
                                                         java.lang.String nodeId,
                                                         org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress ipAddress,
                                                         java.lang.Class<? extends TunnelTypeBase> tunneltype,
                                                         TransportZone transportZone)
      • getHwParentIf

        public static java.lang.String getHwParentIf​(java.lang.String topoId,
                                                     java.lang.String srcNodeid)
      • buildStateInterfaceId

        public static org.opendaylight.yangtools.yang.binding.InstanceIdentifier<org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.state.Interface> buildStateInterfaceId​(java.lang.String interfaceName)
      • getInternalTunnelInterfaces

        public static @NonNull java.util.List<java.lang.String> getInternalTunnelInterfaces​(org.opendaylight.mdsal.binding.api.DataBroker dataBroker)
      • getInternalTunnelsFromCache

        public static java.util.Map<InternalTunnelKey,​InternalTunnel> getInternalTunnelsFromCache​(org.opendaylight.mdsal.binding.api.DataBroker dataBroker)
      • getExternalTunnelKey

        public static ExternalTunnelKey getExternalTunnelKey​(java.lang.String dst,
                                                             java.lang.String src,
                                                             java.lang.Class<? extends TunnelTypeBase> tunType)
      • getTEPsForDpn

        public static java.util.List<TunnelEndPoints> getTEPsForDpn​(org.opendaylight.yangtools.yang.common.Uint64 srcDpn,
                                                                    java.util.Collection<DPNTEPsInfo> dpnList)
      • getAllInternalTunnels

        public static java.util.Map<InternalTunnelKey,​InternalTunnel> getAllInternalTunnels​(org.opendaylight.mdsal.binding.api.DataBroker dataBroker)
      • getInternalTunnel

        public static InternalTunnel getInternalTunnel​(java.lang.String interfaceName,
                                                       org.opendaylight.mdsal.binding.api.DataBroker broker)
      • getExternalTunnel

        public static ExternalTunnel getExternalTunnel​(java.lang.String interfaceName,
                                                       org.opendaylight.mdsal.binding.api.DataBroker broker)
      • convertTunnelTypetoString

        public static java.lang.String convertTunnelTypetoString​(java.lang.Class<? extends TunnelTypeBase> tunType)
      • isItmIfType

        public static boolean isItmIfType​(java.lang.Class<? extends org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.InterfaceType> ifType)
      • getTunnelStateKey

        public static StateTunnelListKey getTunnelStateKey​(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.state.Interface iface)
      • getInterface

        public static org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.Interface getInterface​(java.lang.String name,
                                                                                                                                           IInterfaceManager ifaceManager)
      • falseIfNull

        public static boolean falseIfNull​(java.lang.Boolean value)
      • addTransportZoneMembership

        public static void addTransportZoneMembership​(java.util.List<TzMembership> zones,
                                                      java.lang.String zoneName)
      • createTransportZoneMembership

        public static java.util.List<TzMembership> createTransportZoneMembership​(java.lang.String zoneName)
      • getUnknownTransportZoneFromITMOperDS

        public static TepsInNotHostedTransportZone getUnknownTransportZoneFromITMOperDS​(java.lang.String unknownTz,
                                                                                        org.opendaylight.mdsal.binding.api.DataBroker dataBroker)
        Gets the transport zone in TepsNotHosted list in the Operational Datastore, based on transport zone name.
        Parameters:
        unknownTz - transport zone name
        dataBroker - data broker handle to perform read operations on Oper datastore
        Returns:
        the TepsInNotHostedTransportZone object in the TepsNotHosted list in Oper DS
      • getBridgeDpid

        public static java.lang.String getBridgeDpid​(org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node node,
                                                     java.lang.String bridge,
                                                     org.opendaylight.mdsal.binding.api.DataBroker dataBroker)
        Gets the bridge datapath ID from Network topology Node's OvsdbBridgeAugmentation, in the Operational DS.
        Parameters:
        node - Network Topology Node
        bridge - bridge name
        dataBroker - data broker handle to perform operations on datastore
        Returns:
        the datapath ID of bridge in string form
      • getOvsdbNode

        public static org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node getOvsdbNode​(org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.ovsdb.rev150105.OvsdbBridgeAugmentation bridgeAugmentation,
                                                                                                                                                     org.opendaylight.mdsal.binding.api.DataBroker dataBroker)
        Gets the Network topology Node from Operational Datastore based on Bridge Augmentation.
        Parameters:
        bridgeAugmentation - bridge augmentation of OVSDB node
        dataBroker - data broker handle to perform operations on datastore
        Returns:
        the Network Topology Node i.e. OVSDB node which is managing the specified bridge
      • getStrDatapathId

        public static java.lang.String getStrDatapathId​(org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.ovsdb.rev150105.OvsdbBridgeAugmentation augmentedNode)
        Gets the bridge datapath ID in string form from Network topology Node's OvsdbBridgeAugmentation in the Operational DS.
        Parameters:
        augmentedNode - Ovsdb Augmented Network Topology Node
        Returns:
        the datapath ID of bridge in string form
      • getDummySubnet

        public static org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpPrefix getDummySubnet()
        Returns the dummy subnet (255.255.255.255/32) as IpPrefix object.
        Returns:
        the dummy subnet (255.255.255.255/32) in IpPrefix object
      • deleteTransportZoneFromConfigDS

        public static void deleteTransportZoneFromConfigDS​(java.lang.String tzName,
                                                           org.opendaylight.mdsal.binding.api.DataBroker dataBroker)
        Deletes the transport zone from Configuration datastore.
        Parameters:
        tzName - transport zone name
        dataBroker - data broker handle to perform operations on datastore
      • getTunnelType

        public static java.lang.Class<? extends TunnelTypeBase> getTunnelType​(java.lang.String tunnelType)
        Validates the tunnelType argument and returnsTunnelTypeBase class object corresponding to tunnelType obtained in String format.
        Parameters:
        tunnelType - type of tunnel in string form
        Returns:
        tunnel-type in TunnelTypeBase object
      • buildStateTunnelListId

        public static org.opendaylight.yangtools.yang.binding.InstanceIdentifier<StateTunnelList> buildStateTunnelListId​(StateTunnelListKey tlKey)
      • buildStateOfTepListId

        public static org.opendaylight.yangtools.yang.binding.InstanceIdentifier<OfTep> buildStateOfTepListId​(OfTepKey ofTepKey)
      • getInternalTunnelFromDS

        public static @NonNull java.util.Optional<InternalTunnel> getInternalTunnelFromDS​(org.opendaylight.yangtools.yang.common.Uint64 srcDpn,
                                                                                          org.opendaylight.yangtools.yang.common.Uint64 destDpn,
                                                                                          java.lang.Class<? extends TunnelTypeBase> type,
                                                                                          org.opendaylight.mdsal.binding.api.DataBroker dataBroker)
      • isTunnelAggregationUsed

        public static boolean isTunnelAggregationUsed​(java.lang.Class<? extends TunnelTypeBase> tunType)
      • getExternalTunnelbyExternalTunnelKey

        public static ExternalTunnel getExternalTunnelbyExternalTunnelKey​(ExternalTunnelKey externalTunnelKey,
                                                                          org.opendaylight.yangtools.yang.binding.InstanceIdentifier<ExternalTunnel> path,
                                                                          org.opendaylight.mdsal.binding.api.DataBroker dataBroker)
      • getDpnTEPsInfos

        public static java.util.List<DPNTEPsInfo> getDpnTEPsInfos​(org.opendaylight.mdsal.binding.api.DataBroker dataBroker)
      • getTZInstanceIdentifier

        public static org.opendaylight.yangtools.yang.binding.InstanceIdentifier<TransportZone> getTZInstanceIdentifier​(java.lang.String tzName)
      • getTransportZoneFromConfigDS

        public static TransportZone getTransportZoneFromConfigDS​(java.lang.String tzName,
                                                                 org.opendaylight.mdsal.binding.api.DataBroker dataBroker)
        Returns the transport zone from Configuration datastore.
        Parameters:
        tzName - transport zone name
        dataBroker - data broker handle to perform operations on datastore
        Returns:
        the TransportZone object in Config DS
      • getTransportZoneOfVtep

        public static TransportZone getTransportZoneOfVtep​(org.opendaylight.yangtools.yang.common.Uint64 dpid,
                                                           org.opendaylight.mdsal.binding.api.DataBroker dataBroker)
        Returns the transport zone of vtep from Configuration datastore.
        Parameters:
        dpid - datapath id of vtep
        dataBroker - data broker handle to perform operations on datastore
        Returns:
        the TransportZone object in Config DS
      • convertStringToTunnelType

        public static java.lang.Class<? extends TunnelTypeBase> convertStringToTunnelType​(java.lang.String tunnelType)
      • getDpIdFromTransportzone

        public static java.util.List<org.opendaylight.yangtools.yang.common.Uint64> getDpIdFromTransportzone​(org.opendaylight.mdsal.binding.api.DataBroker dataBroker,
                                                                                                             java.lang.String tzone)
      • generateOfPortName

        public static java.lang.String generateOfPortName​(org.opendaylight.yangtools.yang.common.Uint64 dpId,
                                                          org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress tepIp,
                                                          java.lang.String tunnelType)
      • createDpnOFTepInfo

        public static OfDpnTep createDpnOFTepInfo​(org.opendaylight.yangtools.yang.common.Uint64 dpnID,
                                                  org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress ipAddress,
                                                  java.lang.String ofPortName,
                                                  java.lang.Class<? extends TunnelTypeBase> tunnelType)