Search in sources :

Example 1 with ApplyArpConfigOutputBuilder

use of org.opendaylight.yang.gen.v1.urn.opendaylight.netvirt.vpn.rpc.rev160201.ApplyArpConfigOutputBuilder in project netvirt by opendaylight.

the class VpnRpcServiceImpl method applyArpConfig.

@Override
public ListenableFuture<RpcResult<ApplyArpConfigOutput>> applyArpConfig(ApplyArpConfigInput input) {
    Boolean isArpLearningEnabled = input.isEnableArpLearning();
    LOG.info("isArpLearningEnabled {}", isArpLearningEnabled);
    SettableFuture<RpcResult<ApplyArpConfigOutput>> result = SettableFuture.create();
    ApplyArpConfigOutputBuilder output = new ApplyArpConfigOutputBuilder();
    VpnUtil.enableArpLearning(isArpLearningEnabled);
    output.setEnableArpLearning(VpnUtil.isArpLearningEnabled());
    result.set(RpcResultBuilder.success(output).build());
    return result;
}
Also used : ApplyArpConfigOutputBuilder(org.opendaylight.yang.gen.v1.urn.opendaylight.netvirt.vpn.rpc.rev160201.ApplyArpConfigOutputBuilder) RpcResult(org.opendaylight.yangtools.yang.common.RpcResult)

Aggregations

ApplyArpConfigOutputBuilder (org.opendaylight.yang.gen.v1.urn.opendaylight.netvirt.vpn.rpc.rev160201.ApplyArpConfigOutputBuilder)1 RpcResult (org.opendaylight.yangtools.yang.common.RpcResult)1