Create ELAN Service using GQP

Create an ELAN with the provided properties. The qosProfile is the id of the Generic QoS Profile (GQP) which must pre-exist in NFM-P. The UUID returned as part of the response can be used in subsequent operations on the service.

POST https://<NSP Server>:8543/sdn/api/v4/services/elans

Request:

{
  "data": {
    "appId": null,
    "action": "TRAVERSE",
    "bidirectional": "ANY_REVERSE_ROUTE",
    "name": "elan_service",
    "objective": "COST",
    "tenantId": "0",
    "endpoints": [
      {
        "id": "2182-e4e12d40-47ac-4fee-9a9c-8836152b01b6",
        "outerTag": 222,
        "name": "interface_1",
        "innerTag": "-1",
        "isHub": false,
        "siteServiceQosProfile": {
          "qosProfile": 20,
          "egressParam": null,
          "ingressParam": null,
          "egressOverrideQueues": null,
          "ingressOverrideQueues": null
        }
      },
      {
        "id": "2685-a7665170-d578-4d92-9880-17d15c788ffa",
        "outerTag": 223,
        "innerTag": "-1",
        "isHub": false,
        "siteServiceQosProfile": {
          "qosProfile": 20,
          "egressParam": null,
          "ingressParam": null,
          "egressOverrideQueues": null,
          "ingressOverrideQueues": null
        }
      }
    ],
    "topology": null
  }
}

Response:

{
  "status": 0,
  "startRow": 0,
  "endRow": 1,
  "totalRows": 1,
  "data": {
    "id": "4667-b8249986-d2b9-442f-946a-e35a1748721b",
    "appId": null,
    "operationalState": null,
    "adminState": "UP",
    "neDeploymentState": null,
    "externalIds": null,
    "name": "elan_service",
    "serviceType": "ELAN",
    "tenantIds": [
      "0"
    ],
    "objective": "COST",
    "bidirectional": "ANY_REVERSE_ROUTE",
    "bw": null,
    "reverseBW": null,
    "maxLatency": 0,
    "maxCost": 0,
    "maxHops": 0,
    "lifeCycle": {
      "phase": "Planning",
      "state": "Planned",
      "reason": ""
    },
    "templateId": null,
    "tunnelSelectionId": null,
    "pathProfileId": null,
    "groupId": null,
    "endpoints": null,
    "mtu": 0,
    "vcType": null,
    "monitorBandwidth": false,
    "autoBindType": null,
    "topology": "UNKNOWN_TOPOLOGY",
    "@class": "com.alu.wsc.api.generated.v4.ElanService"
  }
}