Create Tunnel Selection Policy

Create tunnel selection policy with steering parameters created previously.

POST https://<NSP Server>:8543/sdn/api/v3/policy/tunnel-selections

Request:

{
  "data": {
    "objectDescription": "Use Tunnel between A and B",
    "name": "Tunnel_A_to_B",
    "canUseExistingTunnel": true,
    "canResizeExistingTunnel": true,
    "canRebindTunnel": null,
    "canCreateNewTunnel": null,
    "shouldAvoidOperStateDown": null,
    "strictRsvpPriority": "0",
    "looseRsvpPriority": "0",
    "bgpPriority": "0",
    "ldpPriority": "0",
    "grePriority": "0",
    "steeringParametersIncluded": [
      {
        "name": {
          "string": "nodeAtonodeB"
        }
      }
    ],
    "steeringParametersExcluded": []
  }
}

Response:

{
  "status": 0,
  "startRow": 0,
  "endRow": 0,
  "totalRows": 0,
  "data": {
    "id": "3dfebf89-538b-4c41-8610-9437ba32434b",
    "appId": null,
    "name": "Tunnel_A_to_B",
    "objectDescription": "Use Tunnel between A and B",
    "canUseExistingTunnel": true,
    "canResizeExistingTunnel": true,
    "canRebindTunnel": false,
    "canCreateNewTunnel": false,
    "shouldAvoidOperStateDown": false,
    "pccInitiatedLspEnabled": false,
    "strictRsvpPriority": 0,
    "looseRsvpPriority": 0,
    "bgpPriority": 0,
    "ldpPriority": 0,
    "grePriority": 0,
    "erpPriority": 0,
    "oduPriority": 0,
    "steeringParametersIncluded": [
      {
        "name": {
          "string": "nodeAtonodeB"
        }
      }
    ],
    "steeringParametersExcluded": []
  }
}