use of org.opendaylight.yang.gen.v1.urn.opendaylight.genius.arputil.rev160406.SendArpResponseInputBuilder in project genius by opendaylight.
the class ArpUtilTest method testSendArpResponse.
@Test
public void testSendArpResponse() throws Exception {
SendArpResponseInput builder = new SendArpResponseInputBuilder().setInterface(INTERFACE_NAME).setSrcIpaddress(new IpAddress(Ipv4Address.getDefaultInstance("192.168.0.1"))).setDstIpaddress(new IpAddress(Ipv4Address.getDefaultInstance("192.168.0.2"))).setSrcMacaddress(new PhysAddress("1F:1F:1F:1F:1F:1F")).setDstMacaddress(new PhysAddress("00:01:02:03:04:05")).build();
Assert.assertEquals(true, odlArputilService.sendArpResponse(builder).get().isSuccessful());
}
Aggregations