Class TepCommandHelper


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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void buildTeps()  
      boolean checkTepPerTzPerDpn​(java.lang.String tzone, org.opendaylight.yangtools.yang.common.Uint64 dpnId)  
      void close()  
      void configureTunnelMonitorInterval​(int interval)  
      void configureTunnelMonitorParams​(boolean monitorEnabled, java.lang.String monitorProtocol)  
      void configureTunnelType​(java.lang.String transportZoneName, java.lang.String tunnelType)  
      void createLocalCache​(org.opendaylight.yangtools.yang.common.Uint64 dpnId, java.lang.String ipAddress, java.lang.String transportZone)  
      <T extends org.opendaylight.yangtools.yang.binding.DataObject>
      void
      deleteOnCommit()  
      void deleteVtep​(org.opendaylight.yangtools.yang.common.Uint64 dpnId, java.lang.String ipAddress, java.lang.String transportZone)  
      TransportZones getAllTransportZones()
      Gets all transport zones.
      TransportZone getTransportZone​(java.lang.String transportZoneName)
      Gets the transport zone.
      void handleError​(java.lang.String errorMessage)  
      boolean isInCache​(org.opendaylight.yangtools.yang.common.Uint64 dpnId, java.lang.String ipAddress, java.lang.String transportZone)  
      void showBridges​(java.util.Map<org.opendaylight.yangtools.yang.common.Uint64,​org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.ovsdb.rev150105.OvsdbBridgeRef> dpnIdBridgeRefMap)  
      void showCache​(java.lang.String cacheName)  
      void showState​(java.util.Collection<StateTunnelList> tunnelLists, boolean tunnelMonitorEnabled)  
      java.util.List<java.lang.String> showTeps​(boolean monitorEnabled, int monitorInterval)  
      void start()  
      • Methods inherited from class java.lang.Object

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

      • TepCommandHelper

        @Inject
        public TepCommandHelper​(org.opendaylight.mdsal.binding.api.DataBroker dataBroker,
                                ItmConfig itmConfig,
                                UnprocessedTunnelsStateCache unprocessedTunnelsStateCache)
    • Method Detail

      • start

        @PostConstruct
        public void start()
                   throws java.util.concurrent.ExecutionException,
                          java.lang.InterruptedException
        Throws:
        java.util.concurrent.ExecutionException
        java.lang.InterruptedException
      • close

        @PreDestroy
        public void close()
      • createLocalCache

        public void createLocalCache​(org.opendaylight.yangtools.yang.common.Uint64 dpnId,
                                     java.lang.String ipAddress,
                                     java.lang.String transportZone)
                              throws TepException
        Throws:
        TepException
      • getTransportZone

        public TransportZone getTransportZone​(java.lang.String transportZoneName)
        Gets the transport zone.
        Parameters:
        transportZoneName - the tzone
        Returns:
        the transport zone
      • getAllTransportZones

        public TransportZones getAllTransportZones()
        Gets all transport zones.
        Returns:
        all transport zones
      • checkTepPerTzPerDpn

        public boolean checkTepPerTzPerDpn​(java.lang.String tzone,
                                           org.opendaylight.yangtools.yang.common.Uint64 dpnId)
      • buildTeps

        public void buildTeps()
      • showTeps

        public java.util.List<java.lang.String> showTeps​(boolean monitorEnabled,
                                                         int monitorInterval)
                                                  throws TepException
        Throws:
        TepException
      • showCache

        public void showCache​(java.lang.String cacheName)
      • deleteVtep

        public void deleteVtep​(org.opendaylight.yangtools.yang.common.Uint64 dpnId,
                               java.lang.String ipAddress,
                               java.lang.String transportZone)
                        throws TepException
        Throws:
        TepException
      • deleteOnCommit

        public <T extends org.opendaylight.yangtools.yang.binding.DataObject> void deleteOnCommit()
      • showBridges

        public void showBridges​(java.util.Map<org.opendaylight.yangtools.yang.common.Uint64,​org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.ovsdb.rev150105.OvsdbBridgeRef> dpnIdBridgeRefMap)
      • isInCache

        public boolean isInCache​(org.opendaylight.yangtools.yang.common.Uint64 dpnId,
                                 java.lang.String ipAddress,
                                 java.lang.String transportZone)
                          throws TepException
        Throws:
        TepException
      • configureTunnelType

        public void configureTunnelType​(java.lang.String transportZoneName,
                                        java.lang.String tunnelType)
                                 throws java.util.concurrent.ExecutionException,
                                        java.lang.InterruptedException
        Throws:
        java.util.concurrent.ExecutionException
        java.lang.InterruptedException
      • configureTunnelMonitorParams

        public void configureTunnelMonitorParams​(boolean monitorEnabled,
                                                 java.lang.String monitorProtocol)
      • configureTunnelMonitorInterval

        public void configureTunnelMonitorInterval​(int interval)