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);
}
}
Aggregations