Create Openflow flows -Redirect to Next Hop

Create Openflow flows - Redirect to Next Hop

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

Request:

{
  "data": [
    {
      "priority": 16,
      "cookie": "0x16",
      "datapathId": "0x000128BBFF000000",
      "tableId": "0",
      "openflowMatch": {
        "ethernetType": "0x800",
        "ipProtocolType": 6
      },
      "openflowInstruction": {
        "instructionType": "WRITE_ACTIONS",
        "actions": [
          {
            "actionType": "EXPERIMENTER",
            "experimenterActionType": "REDIRECT_TO_NEXTHOP",
            "isIndirect": "false",
            "ipAddress": {
              "ipv4Address": {
                "string": "30.30.30.1"
              }
            }
          }
        ]
      }
    }
  ]
}

Response:

{
  "status": 0,
  "startRow": 0,
  "endRow": 1,
  "totalRows": 1,
  "data": [
    {
      "flowId": "48e14f83-9839-4362-8f7f-263be52d2ad8",
      "datapathId": "0x000128BBFF000000",
      "tableId": 0,
      "cookie": "0x0000000000000016",
      "priority": 16,
      "applicationId": 0,
      "applicationGroupId": 0,
      "lifecycle": "DEPLOYED",
      "auditstate": "NOT_DONE",
      "openflowMatch": {
        "ethernetType": "0x800",
        "ipProtocolType": 6,
        "sourceIpAddress": null,
        "sourcePort": null,
        "destIpAddress": null,
        "destPort": null
      },
      "openflowInstruction": {
        "instructionType": "WRITE_ACTIONS",
        "actions": [
          {
            "actionType": "EXPERIMENTER",
            "experimenterActionType": "REDIRECT_TO_NEXTHOP",
            "portId": null,
            "sdpId": null,
            "vcId": null,
            "ipAddress": {
              "ipv6Address": null,
              "ipv4Address": {
                "string": "30.30.30.1"
              }
            },
            "isIndirect": false
          }
        ]
      }
    }
  ]
}