use of org.opendaylight.yang.gen.v1.urn.opendaylight.netvirt.vpn.rpc.rev160201.ApplyArpConfigOutput 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;
}
Aggregations