use of org.openkilda.testing.service.northbound.payloads.SwitchValidationExtendedResult in project open-kilda by telstra.
the class NorthboundServiceImpl method validateSwitch.
@Override
public SwitchValidationExtendedResult validateSwitch(SwitchId switchId) {
log.debug("Switch validating '{}'", switchId);
SwitchValidationResult result = Objects.requireNonNull(restTemplate.exchange("/api/v1/switches/{switch_id}/validate", HttpMethod.GET, new HttpEntity(buildHeadersWithCorrelationId()), SwitchValidationResult.class, switchId).getBody());
return new SwitchValidationExtendedResult(switchId, result);
}
Aggregations