Class VpnRpcServiceImpl
- java.lang.Object
-
- org.opendaylight.netvirt.vpnmanager.VpnRpcServiceImpl
-
- All Implemented Interfaces:
VpnRpcService
,org.opendaylight.yangtools.yang.binding.RpcService
@Singleton public class VpnRpcServiceImpl extends java.lang.Object implements VpnRpcService
-
-
Constructor Summary
Constructors Constructor Description VpnRpcServiceImpl(org.opendaylight.mdsal.binding.api.DataBroker dataBroker, IFibManager fibManager, IBgpManager bgpManager, IVpnManager vpnManager, InterVpnLinkCache interVpnLinkCache, VpnUtil vpnUtil, InterVpnLinkUtil interVpnLinkUtil)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<AddStaticRouteOutput>>
addStaticRoute(AddStaticRouteInput input)
Invokeadd-static-route
RPC.com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<ApplyArpConfigOutput>>
applyArpConfig(ApplyArpConfigInput input)
Invokeapply-arp-config
RPC.com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<GenerateVpnLabelOutput>>
generateVpnLabel(GenerateVpnLabelInput input)
Generate label for the given ip prefix from the associated VPN.com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<RemoveStaticRouteOutput>>
removeStaticRoute(RemoveStaticRouteInput input)
Invokeremove-static-route
RPC.com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<RemoveVpnLabelOutput>>
removeVpnLabel(RemoveVpnLabelInput input)
Remove label for the given ip prefix from the associated VPN.
-
-
-
Constructor Detail
-
VpnRpcServiceImpl
@Inject public VpnRpcServiceImpl(org.opendaylight.mdsal.binding.api.DataBroker dataBroker, IFibManager fibManager, IBgpManager bgpManager, IVpnManager vpnManager, InterVpnLinkCache interVpnLinkCache, VpnUtil vpnUtil, InterVpnLinkUtil interVpnLinkUtil)
-
-
Method Detail
-
generateVpnLabel
public com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<GenerateVpnLabelOutput>> generateVpnLabel(GenerateVpnLabelInput input)
Generate label for the given ip prefix from the associated VPN.- Specified by:
generateVpnLabel
in interfaceVpnRpcService
- Parameters:
input
- ofgenerate-vpn-label
- Returns:
- output of
generate-vpn-label
-
removeVpnLabel
public com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<RemoveVpnLabelOutput>> removeVpnLabel(RemoveVpnLabelInput input)
Remove label for the given ip prefix from the associated VPN.- Specified by:
removeVpnLabel
in interfaceVpnRpcService
- Parameters:
input
- ofremove-vpn-label
- Returns:
- output of
remove-vpn-label
-
addStaticRoute
public com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<AddStaticRouteOutput>> addStaticRoute(AddStaticRouteInput input)
Description copied from interface:VpnRpcService
Invokeadd-static-route
RPC.Creates a static route in a VPN, creating a new label if needed
- Specified by:
addStaticRoute
in interfaceVpnRpcService
- Parameters:
input
- ofadd-static-route
- Returns:
- output of
add-static-route
-
removeStaticRoute
public com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<RemoveStaticRouteOutput>> removeStaticRoute(RemoveStaticRouteInput input)
Description copied from interface:VpnRpcService
Invokeremove-static-route
RPC.Removes a static route in a VPN, identified by this vpn name, destination and nexthop. Nextop is optional. If specified, the RPC will just remove one of the nexthops in the route (ECMP feature). If not specified, the whole route will be removed
- Specified by:
removeStaticRoute
in interfaceVpnRpcService
- Parameters:
input
- ofremove-static-route
- Returns:
- output of
remove-static-route
-
applyArpConfig
public com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<ApplyArpConfigOutput>> applyArpConfig(ApplyArpConfigInput input)
Description copied from interface:VpnRpcService
Invokeapply-arp-config
RPC.To apply ARP/GARP related configuration per PL
- Specified by:
applyArpConfig
in interfaceVpnRpcService
- Parameters:
input
- ofapply-arp-config
- Returns:
- output of
apply-arp-config
-
-