Search in sources :

Example 1 with AddressResponse

use of org.openkilda.testing.service.traffexam.model.AddressResponse in project open-kilda by telstra.

the class TraffExamServiceImpl method assignAddress.

private Address assignAddress(Host host, Address payload) {
    AddressResponse response = restTemplate.postForObject(makeHostUri(host).path("address").build(), payload, AddressResponse.class);
    Address address = response.address;
    address.setHost(host);
    suppliedAddresses.put(address.getId(), address);
    return address;
}
Also used : Address(org.openkilda.testing.service.traffexam.model.Address) Inet4Address(java.net.Inet4Address) EndpointAddress(org.openkilda.testing.service.traffexam.model.EndpointAddress) AddressResponse(org.openkilda.testing.service.traffexam.model.AddressResponse)

Aggregations

Inet4Address (java.net.Inet4Address)1 Address (org.openkilda.testing.service.traffexam.model.Address)1 AddressResponse (org.openkilda.testing.service.traffexam.model.AddressResponse)1 EndpointAddress (org.openkilda.testing.service.traffexam.model.EndpointAddress)1