import java.util.concurrent.Callable;
import org.opendaylight.transportpce.renderer.provisiondevice.OtnDeviceRendererService;
import org.opendaylight.transportpce.renderer.provisiondevice.OtnDeviceRenderingResult;
import java.util.concurrent.Callable;
import org.opendaylight.transportpce.renderer.provisiondevice.OtnDeviceRendererService;
import org.opendaylight.transportpce.renderer.provisiondevice.OtnDeviceRenderingResult;
-import org.opendaylight.yang.gen.v1.http.org.opendaylight.transportpce.renderer.device.rev200128.OtnServicePathInput;
-import org.opendaylight.yang.gen.v1.http.org.opendaylight.transportpce.renderer.device.rev200128.OtnServicePathOutput;
+import org.opendaylight.yang.gen.v1.http.org.opendaylight.transportpce.device.renderer.rev200128.OtnServicePathInput;
+import org.opendaylight.yang.gen.v1.http.org.opendaylight.transportpce.device.renderer.rev200128.OtnServicePathOutput;
@Override
public OtnDeviceRenderingResult call() throws Exception {
OtnServicePathOutput output = this.otnDeviceRenderer.setupOtnServicePath(this.otnServicePathInput);
@Override
public OtnDeviceRenderingResult call() throws Exception {
OtnServicePathOutput output = this.otnDeviceRenderer.setupOtnServicePath(this.otnServicePathInput);
LOG.info("Device rendering finished successfully.");
return OtnDeviceRenderingResult.ok(new ArrayList<>(output.nonnullNodeInterface().values()));
LOG.info("Device rendering finished successfully.");
return OtnDeviceRenderingResult.ok(new ArrayList<>(output.nonnullNodeInterface().values()));
LOG.warn("Device rendering not successfully finished.");
return OtnDeviceRenderingResult.failed("Operation Failed");
}
LOG.warn("Device rendering not successfully finished.");
return OtnDeviceRenderingResult.failed("Operation Failed");
}