Class ItmRpcTestImpl

  • All Implemented Interfaces:
    ItmRpcService, org.opendaylight.yangtools.yang.binding.RpcService

    public final class ItmRpcTestImpl
    extends java.lang.Object
    implements ItmRpcService
    • Constructor Detail

      • ItmRpcTestImpl

        public ItmRpcTestImpl()
    • Method Detail

      • addDpn

        public void addDpn​(org.opendaylight.yangtools.yang.common.Uint64 dpnId,
                           java.lang.String tepIp)
      • addInterface

        public void addInterface​(org.opendaylight.yangtools.yang.common.Uint64 dpnId,
                                 java.lang.String dstTep,
                                 java.lang.String interfaceName)
      • addL2GwInterface

        public void addL2GwInterface​(org.opendaylight.yangtools.yang.common.Uint64 dpnId,
                                     java.lang.String nodeId,
                                     java.lang.String interfaceName)
      • addExternalInterface

        public void addExternalInterface​(org.opendaylight.yangtools.yang.common.Uint64 dpnId,
                                         java.lang.String dstTep,
                                         java.lang.String interfaceName)
      • getDpnInfo

        public com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<GetDpnInfoOutput>> getDpnInfo​(GetDpnInfoInput input)
        Description copied from interface: ItmRpcService
        Invoke get-dpn-info RPC.
             
                 Gets the dpn id and tep ip information of compute nodes
             
         
        Specified by:
        getDpnInfo in interface ItmRpcService
        Parameters:
        input - of get-dpn-info
        Returns:
        output of get-dpn-info
      • addL2GwMlagDevice

        public com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<AddL2GwMlagDeviceOutput>> addL2GwMlagDevice​(AddL2GwMlagDeviceInput input)
        Description copied from interface: ItmRpcService
        Invoke add-l2-gw-mlag-device RPC.
             
                 used for building tunnels between teps on all Dpns and hwVtep
             
         
        Specified by:
        addL2GwMlagDevice in interface ItmRpcService
        Parameters:
        input - of add-l2-gw-mlag-device
        Returns:
        output of add-l2-gw-mlag-device
      • deleteL2GwDevice

        public com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<DeleteL2GwDeviceOutput>> deleteL2GwDevice​(DeleteL2GwDeviceInput input)
        Description copied from interface: ItmRpcService
        Invoke delete-l2-gw-device RPC.
             
                 used for deleting tunnels between teps on all Dpns and hwVtep
             
         
        Specified by:
        deleteL2GwDevice in interface ItmRpcService
        Parameters:
        input - of delete-l2-gw-device
        Returns:
        output of delete-l2-gw-device
      • addL2GwDevice

        public com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<AddL2GwDeviceOutput>> addL2GwDevice​(AddL2GwDeviceInput input)
        Description copied from interface: ItmRpcService
        Invoke add-l2-gw-device RPC.
             
                 used for building tunnels between teps on all Dpns and hwVtep
             
         
        Specified by:
        addL2GwDevice in interface ItmRpcService
        Parameters:
        input - of add-l2-gw-device
        Returns:
        output of add-l2-gw-device
      • getWatchPortForTunnel

        public com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<GetWatchPortForTunnelOutput>> getWatchPortForTunnel​(GetWatchPortForTunnelInput input)
        Description copied from interface: ItmRpcService
        Invoke get-watch-port-for-tunnel RPC.
             
                 retrieve the watch port for the BFD enabled point to point tunnel
             
         
        Specified by:
        getWatchPortForTunnel in interface ItmRpcService
        Parameters:
        input - of get-watch-port-for-tunnel
        Returns:
        output of get-watch-port-for-tunnel
      • getTepIp

        public com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<GetTepIpOutput>> getTepIp​(GetTepIpInput input)
        Description copied from interface: ItmRpcService
        Invoke get-tep-ip RPC.
             
                 used to retrieve local tep ip to use from DPNID
             
         
        Specified by:
        getTepIp in interface ItmRpcService
        Parameters:
        input - of get-tep-ip
        Returns:
        output of get-tep-ip
      • isTunnelInternalOrExternal

        public com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<IsTunnelInternalOrExternalOutput>> isTunnelInternalOrExternal​(IsTunnelInternalOrExternalInput input)
        Description copied from interface: ItmRpcService
        Invoke is-tunnel-internal-or-external RPC.
             
                 Used for determining whether tunnel is an internal or an external tunnel
             
         
        Specified by:
        isTunnelInternalOrExternal in interface ItmRpcService
        Parameters:
        input - of is-tunnel-internal-or-external
        Returns:
        output of is-tunnel-internal-or-external
      • getTunnelInterfaceName

        public com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<GetTunnelInterfaceNameOutput>> getTunnelInterfaceName​(GetTunnelInterfaceNameInput input)
        Description copied from interface: ItmRpcService
        Invoke get-tunnel-interface-name RPC.
             
                 used to retrieve tunnel interface id between Dpns
             
         
        Specified by:
        getTunnelInterfaceName in interface ItmRpcService
        Parameters:
        input - of get-tunnel-interface-name
        Returns:
        output of get-tunnel-interface-name
      • isDcgwPresent

        public com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<IsDcgwPresentOutput>> isDcgwPresent​(IsDcgwPresentInput input)
        Description copied from interface: ItmRpcService
        Invoke is-dcgw-present RPC.
             
                 Used for determining whether tunnel is an internal or an external tunnel
             
         
        Specified by:
        isDcgwPresent in interface ItmRpcService
        Parameters:
        input - of is-dcgw-present
        Returns:
        output of is-dcgw-present
      • getDpnEndpointIps

        public com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<GetDpnEndpointIpsOutput>> getDpnEndpointIps​(GetDpnEndpointIpsInput input)
        Description copied from interface: ItmRpcService
        Invoke get-dpn-endpoint-ips RPC.
             
                 used to retrieve tunnel end point IPs of a Dpn
             
         
        Specified by:
        getDpnEndpointIps in interface ItmRpcService
        Parameters:
        input - of get-dpn-endpoint-ips
        Returns:
        output of get-dpn-endpoint-ips
      • deleteL2GwMlagDevice

        public com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<DeleteL2GwMlagDeviceOutput>> deleteL2GwMlagDevice​(DeleteL2GwMlagDeviceInput input)
        Description copied from interface: ItmRpcService
        Invoke delete-l2-gw-mlag-device RPC.
             
                 used for deleting tunnels between teps on all Dpns and hwVtep
             
         
        Specified by:
        deleteL2GwMlagDevice in interface ItmRpcService
        Parameters:
        input - of delete-l2-gw-mlag-device
        Returns:
        output of delete-l2-gw-mlag-device
      • addExternalTunnelEndpoint

        public com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<AddExternalTunnelEndpointOutput>> addExternalTunnelEndpoint​(AddExternalTunnelEndpointInput input)
        Description copied from interface: ItmRpcService
        Invoke add-external-tunnel-endpoint RPC.
             
                 used for building tunnels between teps on all Dpns and external node
             
         
        Specified by:
        addExternalTunnelEndpoint in interface ItmRpcService
        Parameters:
        input - of add-external-tunnel-endpoint
        Returns:
        output of add-external-tunnel-endpoint
      • setBfdParamOnTunnel

        public com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<SetBfdParamOnTunnelOutput>> setBfdParamOnTunnel​(SetBfdParamOnTunnelInput input)
        Description copied from interface: ItmRpcService
        Invoke set-bfd-param-on-tunnel RPC.
             
                 used for turning ON/OFF to monitor individual tunnels
             
         
        Specified by:
        setBfdParamOnTunnel in interface ItmRpcService
        Parameters:
        input - of set-bfd-param-on-tunnel
        Returns:
        output of set-bfd-param-on-tunnel
      • getTunnelType

        public com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<GetTunnelTypeOutput>> getTunnelType​(GetTunnelTypeInput input)
        Description copied from interface: ItmRpcService
        Invoke get-tunnel-type RPC.
             
                 to get the type of the tunnel interface(vxlan, vxlan-gpe, gre, etc.)
             
         
        Specified by:
        getTunnelType in interface ItmRpcService
        Parameters:
        input - of get-tunnel-type
        Returns:
        output of get-tunnel-type