Hello. I have physical HP-2920-24G Aruba switch and I'm using the HP SDN Controller (trial version). I've just started with SDN. I wanted to add a flow, using curl:
curl -ski -X POST \
-H "X-Auth-Token: b83786a25be841e29e99b0cc079dc972" \
-H "Content-Type:application/json" \
-d '{
"flow": {
"cookie": "0x2031987",
"table_id": 0,
"priority": 30000,
"idle_timeout": 300,
"hard_timeout": 300,
"match": [
{"ipv4_src": "10.0.2.101"},
{"ipv4_dst": "10.0.2.102"},
{"eth_type": "ipv4"}
],
"instructions": [{"apply_actions": [{"output": 2}]}]
}
}' \
https://10.0.1.103:8443/sdn/v2.0/of/datapaths/00:01:94:18:82:25:bc:80/flowsBut it showed me the following error:
HTTP/1.1 400 Bad Request
Server: Apache-Coyote/1.1
X-FRAME-OPTIONS: deny
Access-Control-Allow-Origin: *
Access-Control-Allow-Methods: GET, POST, PUT, HEAD, PATCH
Access-Control-Allow-Headers: Content-Type, Accept, X-Auth-Token
Content-Type: application/json
Transfer-Encoding: chunked
Date: Sun, 12 Mar 2017 12:14:54 GMT
Connection: close
{"error":"java.lang.IllegalArgumentException","message":"Failed to validate flowmod: {ofm:[V_1_3,FLOW_MOD,104,300784],cmd=ADD,match={Match(V_1_3):[type=OXM,len=26],fields=ETH_TYPE,IPV4_SRC,IPV4_DST},...}"}I double-checked the syntax, it seems to me that it's OK.
What is the problem, what am I doing wrong here? Thank you.