HP VAN SDN Controller REST API Guide
"instructions": [{"apply_actions": [{"output": 1}]}]
}}
Sample response
There is no response data.
Location header: /sdn/v2.0/of/datapaths/{dpid}/flows
Response codes
• Normal: Created (201)
• Error: Bad Request (400), Unauthorized (401), Not Found (404), Service Unavailable (503)
Update a flow
Sample request
Update a flow:
PUT /sdn/v2.0/of/datapaths/{dpid}/flows
Refer to sample request in flow create. However, if the given flow match and priority are not found,
a 404 error will be returned.
Sample response
There is no response data.
Response codes
• Normal: No Content (204)
• Error: Bad Request (400), Unauthorized (401), Not Found (404), Service Unavailable (503)
Delete a flow
Sample request
Delete a flow:
DELETE /sdn/v2.0/of/datapaths/{dpid}/flows
Sample request:
{"flow": {
"priority": 30000,
"table_id": 200,
"match": [
{"ipv4_src": "10.0.0.1"},
{"ipv4_dst": "10.0.0.22"},
{"ip_proto": "tcp"},
{"eth_type": "ipv4"},
69
{"tcp_dst": "80"}
]
}}
Sample response
There is no response data.
Response codes
• Normal: No Content (204)
• Error: Bad Request (400), Unauthorized (401), Not Found (404), Service Unavailable (503)
64 /sdn/v2.0/of