Modify ODU Optical Service

Modify the created optical service restoration from SBR to GR.

PUT https://<NSP Server>:8543/sdn/api/v4/services/optical/4054-2d5c4048-1ef2-4d61-96d3-c22420d5c80a

Request:

{
  "data": {
    "readOnly": false,
    "appId": "0",
    "bidirectional": "SYMMETRIC_LOOSE",
    "objective": "HOPS",
    "maxHops": 0,
    "maxLatency": 0,
    "maxCost": 0,
    "bw": 9953280,
    "reverseBW": 0,
    "action": "TRAVERSE",
    "monitorBandwidth": "false",
    "tenantId": "0",
    "encryption": "false",
    "name": "ReST API Optical Service",
    "restoration": "GR",
    "sources": [
      "1326-a7da8bf4-93e9-4bb8-98b2-997a2a185bf5"
    ],
    "destinations": [
      "918-1056d8c0-824c-4c3f-8a1e-e74677965f69"
    ]
  }
}

Response:

{
  "status": 0,
  "startRow": 0,
  "endRow": 1,
  "totalRows": 1,
  "data": {
    "id": "4054-2d5c4048-1ef2-4d61-96d3-c22420d5c80a",
    "appId": "0",
    "operationalState": null,
    "adminState": "UP",
    "neDeploymentState": null,
    "externalIds": null,
    "name": "ReST API Optical Service",
    "serviceType": "ODU",
    "tenantIds": [
      "0"
    ],
    "objective": "HOPS",
    "bidirectional": "SYMMETRIC_LOOSE",
    "bw": 9953280,
    "reverseBW": null,
    "maxLatency": 0,
    "maxCost": 0,
    "maxHops": 0,
    "lifeCycle": {
      "phase": "Deployment",
      "state": "DeploymentFailed",
      "reason": "Underlying resource failure"
    },
    "templateId": null,
    "tunnelSelectionId": null,
    "pathProfileId": null,
    "groupId": null,
    "endpoints": [
      {
        "id": "1328-643abdf0-ce5b-49f9-82a7-862f8c8a7a7e",
        "appId": null,
        "operationalState": "DOWN",
        "adminState": "DOWN",
        "neDeploymentState": "NA",
        "externalIds": [
          {
            "context": "NFM_T",
            "location": [
              "135.121.20.91",
              ""
            ],
            "id": "CloudSim_183_004_PSS:130SNX10-1-14-C5@OCH@ODU@"
          }
        ],
        "neId": "66-74aea464-e49c-4d55-99b8-9edd0c297ce0",
        "neName": "CloudSim_183_004_PSS",
        "portId": "1326-a7da8bf4-93e9-4bb8-98b2-997a2a185bf5",
        "portName": "130SNX10-1-14-C5@OCH@ODU",
        "serviceId": null,
        "name": "130SNX10-1-14-C5",
        "innerTag": null,
        "outerTag": null,
        "siteServiceQosProfile": {
          "qosProfile": 0,
          "ingressOverrideQueues": null,
          "egressOverrideQueues": null,
          "ingressParam": null,
          "egressParam": null
        },
        "isHub": null,
        "aggregateBw": 9953280,
        "@class": "com.alu.wsc.api.generated.v4.L2ServiceEndpoint"
      },
      {
        "id": "920-c091f38f-7597-4324-8380-ded4c283f43c",
        "appId": null,
        "operationalState": "DOWN",
        "adminState": "DOWN",
        "neDeploymentState": "NA",
        "externalIds": [
          {
            "context": "NFM_T",
            "location": [
              "135.121.20.91",
              ""
            ],
            "id": "CloudSim_183_003_PSS:130SNX10-1-12-C5@OCH@ODU@"
          }
        ],
        "neId": "51-858ac5d5-ec73-4d55-a25e-9e3b30222062",
        "neName": "CloudSim_183_003_PSS",
        "portId": "918-1056d8c0-824c-4c3f-8a1e-e74677965f69",
        "portName": "130SNX10-1-12-C5@OCH@ODU",
        "serviceId": null,
        "name": "130SNX10-1-12-C5",
        "innerTag": null,
        "outerTag": null,
        "siteServiceQosProfile": {
          "qosProfile": 0,
          "ingressOverrideQueues": null,
          "egressOverrideQueues": null,
          "ingressParam": null,
          "egressParam": null
        },
        "isHub": null,
        "aggregateBw": 9953280,
        "@class": "com.alu.wsc.api.generated.v4.L2ServiceEndpoint"
      }
    ],
    "opticalServiceRoute": {
      "routes": []
    },
    "switchTab": null,
    "restoration": "GR",
    "reversionMode": "auto",
    "protectionType": "UNPROTECTED",
    "ochList": {
      "ochTrails": []
    },
    "routingState": "normal",
    "readyToRevert": true,
    "availableBw": null,
    "lambda": 0,
    "facility": 1,
    "modulation": "SYSTEM_ASSIGNED",
    "phaseEncoding": "system_assigned",
    "waveshape": "system_assigned",
    "servicePlaneType": "managementPlane",
    "nfmtTypeOfService": "TRAIL",
    "@class": "com.alu.wsc.api.generated.v4.OpticalService"
  }
}