Class ItmProvider

  • All Implemented Interfaces:
    java.lang.AutoCloseable, IITMProvider

    @Singleton
    public class ItmProvider
    extends java.lang.Object
    implements java.lang.AutoCloseable, IITMProvider
    • Field Detail

      • batchSize

        public java.lang.Integer batchSize
      • batchInterval

        public java.lang.Integer batchInterval
    • Method Detail

      • start

        @PostConstruct
        public void start()
      • initialiseBatchingManager

        public void initialiseBatchingManager()
      • createDefaultTransportZone

        public void createDefaultTransportZone​(ItmConfig itmConfigObj)
      • close

        @PreDestroy
        public void close()
        Specified by:
        close in interface java.lang.AutoCloseable
      • getDataBroker

        public org.opendaylight.mdsal.binding.api.DataBroker getDataBroker()
        Specified by:
        getDataBroker in interface IITMProvider
      • addExternalEndpoint

        public void addExternalEndpoint​(java.lang.Class<? extends TunnelTypeBase> tunnelType,
                                        org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress dcgwIP)
        Specified by:
        addExternalEndpoint in interface IITMProvider
      • remExternalEndpoint

        public void remExternalEndpoint​(java.lang.Class<? extends TunnelTypeBase> tunnelType,
                                        org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress dcgwIP)
        Specified by:
        remExternalEndpoint in interface IITMProvider
      • createLocalCache

        public void createLocalCache​(org.opendaylight.yangtools.yang.common.Uint64 dpnId,
                                     java.lang.String portName,
                                     java.lang.Integer vlanId,
                                     java.lang.String ipAddress,
                                     java.lang.String subnetMask,
                                     java.lang.String gatewayIp,
                                     java.lang.String transportZone)
        Specified by:
        createLocalCache in interface IITMProvider
      • showTeps

        public java.util.List<java.lang.String> showTeps()
        Specified by:
        showTeps in interface IITMProvider
      • showBridges

        public void showBridges​(java.util.Map dpnIdBridgeRefsMap)
        Specified by:
        showBridges in interface IITMProvider
      • showCache

        public void showCache​(java.lang.String cacheName)
        Specified by:
        showCache in interface IITMProvider
      • deleteVtep

        public void deleteVtep​(org.opendaylight.yangtools.yang.common.Uint64 dpnId,
                               java.lang.String portName,
                               java.lang.Integer vlanId,
                               java.lang.String ipAddress,
                               java.lang.String subnetMask,
                               java.lang.String gatewayIp,
                               java.lang.String transportZone)
        Specified by:
        deleteVtep in interface IITMProvider
      • configureTunnelType

        public void configureTunnelType​(java.lang.String transportZone,
                                        java.lang.String tunnelType)
        Specified by:
        configureTunnelType in interface IITMProvider
      • configureTunnelMonitorParams

        public void configureTunnelMonitorParams​(boolean monitorEnabled,
                                                 java.lang.String monitorProtocol)
        Specified by:
        configureTunnelMonitorParams in interface IITMProvider
      • validateIP

        public boolean validateIP​(java.lang.String ip)
        Specified by:
        validateIP in interface IITMProvider
      • getInterface

        public org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.Interface getInterface​(java.lang.String tunnelName)
        Specified by:
        getInterface in interface IITMProvider
      • getTunnelState

        public java.util.Optional<StateTunnelList> getTunnelState​(java.lang.String interfaceName)
                                                           throws org.opendaylight.mdsal.common.api.ReadFailedException
        Specified by:
        getTunnelState in interface IITMProvider
        Throws:
        org.opendaylight.mdsal.common.api.ReadFailedException
      • handleOwnershipChange

        public void handleOwnershipChange​(org.opendaylight.mdsal.eos.binding.api.EntityOwnershipChange ownershipChange,
                                          org.opendaylight.mdsal.eos.binding.api.EntityOwnershipListenerRegistration listenerRegistration)