import org.opendaylight.yang.gen.v1.http.org.opendaylight.transportpce.stubrenderer.rev170426.service.implementation.request.input.ServiceZEnd;
import org.opendaylight.yang.gen.v1.http.org.opendaylight.transportpce.stubrenderer.rev170426.service.implementation.request.input.ServiceZEndBuilder;
import org.opendaylight.yang.gen.v1.http.org.openroadm.common.service.types.rev161014.ServiceFormat;
+import org.opendaylight.yang.gen.v1.http.org.openroadm.common.service.types.rev161014.sdnc.request.header.SdncRequestHeader;
import org.opendaylight.yang.gen.v1.http.org.openroadm.service.rev161014.ServiceCreateInput;
import org.opendaylight.yang.gen.v1.http.org.openroadm.service.rev161014.ServiceReconfigureInput;
import org.opendaylight.yang.gen.v1.http.org.openroadm.service.rev161014.service.list.Services;
try {
tmp = pathComputationOutput.getResponseParameters().getPathDescription();
} catch (NullPointerException e) {
- LOG.error("PathDescription is null : " + e.toString());
+ LOG.error("PathDescription is null : {}", e.toString());
}
PathDescriptionBuilder pathDescription = new PathDescriptionBuilder();
if (tmp != null) {
try {
tmp = pathComputationOutput.getResponseParameters().getPathDescription();
} catch (NullPointerException e) {
- LOG.error("PathDescription is null : " + e.toString());
+ LOG.error("PathDescription is null : {}", e.toString());
}
PathDescriptionBuilder pathDescription = new PathDescriptionBuilder();
if (tmp != null) {
.setServiceAEnd(serviceAEnd)
.setServiceZEnd(serviceZEnd)
.build();
- LOG.info("ServiceImplementationRequestInput : " + serviceImplementationRequestInput.toString());*/
+ LOG.info("ServiceImplementationRequestInput : {}", serviceImplementationRequestInput.toString());*/
}
/** Building ServiceImplementationRequestInput / ServiceDeleteInput serviceDeleteInput .*/
ServiceHandlerHeaderBuilder serviceHandlerHeader = new ServiceHandlerHeaderBuilder();
+ SdncRequestHeader sdnc = services.getSdncRequestHeader();
+ if (sdnc != null) {
+ String requestId = services.getSdncRequestHeader().getRequestId();
+ if (requestId != null) {
+ serviceHandlerHeader.setRequestId(requestId);
+ }
+ }
mappingSIRequest(pathComputationOutput, serviceHandlerHeader, services.getServiceAEnd(),
services.getServiceZEnd(), services.getServiceName());
/*org.opendaylight.yang.gen.v1.http.org.openroadm.common.service
try {
tmp = pathComputationOutput.getResponseParameters().getPathDescription();
} catch (NullPointerException e) {
- LOG.error("PathDescription is null : " + e.toString());
+ LOG.error("PathDescription is null : {}", e);
}
PathDescriptionBuilder pathDescription = new PathDescriptionBuilder();
if (tmp != null) {
.setServiceAEnd(serviceAEnd)
.setServiceZEnd(serviceZEnd)
.build();
- LOG.info("ServiceImplementationRequestInput : " + serviceImplementationRequestInput.toString());*/
+ LOG.info("ServiceImplementationRequestInput : {}", serviceImplementationRequestInput.toString());*/
}
/**
try {
tmp = pathComputationOutput.getResponseParameters().getPathDescription();
} catch (NullPointerException e) {
- LOG.error("PathDescription is null : " + e.toString());
+ LOG.error("PathDescription is null : {}", e.toString());
}
PathDescriptionBuilder pathDescription = new PathDescriptionBuilder();
if (tmp != null) {