Hello phoongsaan,
From the error message “Not supported before version 1.1” , it is clear that the API needs a version OpenFlow 1.1 or above.
By using the GET /of/datapaths REST API you can check the OpenFlow version. After calling this api , in the response body you can see negotiated version which is the OpenFlow version. [for e.g. 1.0.0]
In your json you have table_id field which is supported only in OpenFlow 1.1 and above.So you get the error.
You can either try the api with OpenFlow 1.1 and above or you can modify the call for 1.0.0
A sample json for OpenFlow 1.0.0 is as below ,you might need to modify accordingly
{"flow": {
"priority": 30000,
"idle_timeout": 60,
"match": [
{"ipv4_src": "10.0.0.1"},
{"ipv4_dst": "10.0.0.22"},
{"ip_proto": "tcp"},
{"eth_type": "ipv4"},
{"tcp_dst": "80"}
],
"actions": [{"output": 1}]
}}
Please let us know if you still face some problem.
Thanks,
HP SDN Team