Search in sources :

Example 1 with SendNeighborSolicitationToOfGroupInput

use of org.opendaylight.yang.gen.v1.urn.opendaylight.genius.ipv6.nd.util.rev170210.SendNeighborSolicitationToOfGroupInput in project netvirt by opendaylight.

the class VpnUtil method sendNeighborSolicationToOfGroup.

public static void sendNeighborSolicationToOfGroup(Ipv6NdUtilService ipv6NdUtilService, Ipv6Address srcIpv6Address, MacAddress srcMac, Ipv6Address dstIpv6Address, Long ofGroupId, Uint64 dpId) {
    SendNeighborSolicitationToOfGroupInput input = new SendNeighborSolicitationToOfGroupInputBuilder().setSourceIpv6(srcIpv6Address).setSourceLlAddress(srcMac).setTargetIpAddress(dstIpv6Address).setOfGroupId(ofGroupId).setDpId(dpId).build();
    try {
        Future<RpcResult<SendNeighborSolicitationToOfGroupOutput>> result = ipv6NdUtilService.sendNeighborSolicitationToOfGroup(input);
        RpcResult<SendNeighborSolicitationToOfGroupOutput> rpcResult = result.get();
        if (!rpcResult.isSuccessful()) {
            LOG.error("sendNeighborSolicitationToOfGroup: RPC Call failed for input={} and Errors={}", input, rpcResult.getErrors());
        }
    } catch (InterruptedException | ExecutionException e) {
        LOG.error("Failed to send NS packet to ELAN group, input={}", input, e);
    }
}
Also used : SendNeighborSolicitationToOfGroupInput(org.opendaylight.yang.gen.v1.urn.opendaylight.genius.ipv6.nd.util.rev170210.SendNeighborSolicitationToOfGroupInput) SendNeighborSolicitationToOfGroupInputBuilder(org.opendaylight.yang.gen.v1.urn.opendaylight.genius.ipv6.nd.util.rev170210.SendNeighborSolicitationToOfGroupInputBuilder) RpcResult(org.opendaylight.yangtools.yang.common.RpcResult) ExecutionException(java.util.concurrent.ExecutionException) SendNeighborSolicitationToOfGroupOutput(org.opendaylight.yang.gen.v1.urn.opendaylight.genius.ipv6.nd.util.rev170210.SendNeighborSolicitationToOfGroupOutput)

Aggregations

ExecutionException (java.util.concurrent.ExecutionException)1 SendNeighborSolicitationToOfGroupInput (org.opendaylight.yang.gen.v1.urn.opendaylight.genius.ipv6.nd.util.rev170210.SendNeighborSolicitationToOfGroupInput)1 SendNeighborSolicitationToOfGroupInputBuilder (org.opendaylight.yang.gen.v1.urn.opendaylight.genius.ipv6.nd.util.rev170210.SendNeighborSolicitationToOfGroupInputBuilder)1 SendNeighborSolicitationToOfGroupOutput (org.opendaylight.yang.gen.v1.urn.opendaylight.genius.ipv6.nd.util.rev170210.SendNeighborSolicitationToOfGroupOutput)1 RpcResult (org.opendaylight.yangtools.yang.common.RpcResult)1