SD-WAN

 View Only
  • 1.  Problem when adding flow

    Posted Apr 01, 2014 09:40 PM

    Hello guy, i had try using rest api (datapath) for adding the flow with the following command :

     

    {"flow": {
    "priority": 30000,
    "table_id": 200,
    "idle_timeout": 60,
    "match": [
    {"ipv4_src": "192.168.1.20"},
    {"ipv4_dst": "192.168.1.10"},
    {"ip_proto": "tcp"},
    {"eth_type": "ipv4"},
    {"tcp_dst": "80"}
    ],
    "instructions": [{"apply_actions": [{"output": 5}]}]
    }}

     

    However, it reply me with the response code "400",  What  should I do?, I already attach the picture of what happen.

     

    Thank you.



  • 2.  RE: Problem when adding flow

    Posted Apr 01, 2014 10:33 PM
    I believe that you are using OpenFlow version 1.0 and these commands are for 1.3


  • 3.  RE: Problem when adding flow

    Posted Apr 02, 2014 10:32 AM

    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



  • 4.  RE: Problem when adding flow

    Posted Apr 03, 2014 05:57 AM

    Hey guy,

     

    I had the same problem with Phongsaaan, The problem is solved by adding the flow as you said. 

     

    However, I try to delete the flow by the RestAPI. But the DELETE /of/datapaths/{dpid}/flow is not clickable.

     

    I don't know why ,Is it suppose to be like this?

     

    also what is the DELETE flow to put in, since I also use openflow version 1.0.0.

     

    Thanks



  • 5.  RE: Problem when adding flow

    Posted Apr 04, 2014 02:14 AM

    The problem is already solve...

     

    The Form of the flow is basically the same as the adding the flow as mentions above. I different of the DELETE flow is we need to change of GET to DELETE. 

     

    Thanks anyway



  • 6.  RE: Problem when adding flow

    Posted Apr 22, 2014 06:29 AM

    Hello Duiz,

    We are glad that your problem is solved.
    Please do let us know if you need further assistance.

    Please feel free to reply incase you have more questions around the same topic or open a new thread if new topic.

    Thanks
    HP SDN Team