Create Openflow flows -Create Cookie

Create Openflow flows - Create Cookie

POST https://<NSP Server>:8543/sdn/api/v4/openflow/flows

Request:

{
  "data": [
    {
      "applicationId": "1002",
      "priority": 10,
      "cookie": "0x1234567890123456",
      "datapathId": "0x00012A5DFF000000",
      "tableId": "0"
    }
  ]
}

Response:

{
  "status": 0,
  "startRow": 0,
  "endRow": 1,
  "totalRows": 1,
  "data": [
    {
      "flowId": "42c24d0a-867c-496c-920c-803a4fb6e432",
      "datapathId": "0x00012A5DFF000000",
      "tableId": 0,
      "cookie": "0x1234567890123456",
      "priority": 10,
      "applicationId": 1002,
      "applicationGroupId": 0,
      "lifecycle": "DEPLOYED",
      "auditstate": "NOT_DONE",
      "openflowMatch": {
        "inPort": null,
        "ethernetType": null,
        "vlanId": null,
        "ipProtocolType": null,
        "sourceIpAddress": null,
        "sourcePort": null,
        "destIpAddress": null,
        "destPort": null,
        "outerVlanId": null
      },
      "openflowInstruction": {
        "instructionType": "CLEAR_ACTIONS",
        "actions": null
      }
    }
  ]
}