SD-WAN

 View Only
  • 1.  Adding flows with action type "group"

    Posted Feb 25, 2014 03:02 AM

    Hi, 

     

    I have a trouble adding a flow with action type "group", both via the HP VAN controller and Rsdoc. I will just use the Rsdoc one to ask my question.

     

    I go to:

    https://<controller_IP>:8443/api

     

    and use this api to add a flow:

    /of/datapaths/<my_dpid>/flows

     

     

    {"flow": {
    "priority": 3,
    "table_id": 0,
    "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"}
    ],
    "instructions": [{"apply_actions": [{"group": 101}]}]
    }}

     

     

    This gives me an error 

     

    {
    "error": "java.lang.IllegalArgumentException",
    "message": "{ofm:[V_1_3,ERROR,76,4959],BAD_ACTION/BAD_TYPE,#dataBytes=64,OFM-cause:[V_1_3,FLOW_MOD,104,4959]}"
    }

     

    Adding a flow entry with {"apply_actions": [{"output": 10}]} works fine. Does this mean the physical switch I am using does not support adding a flow entry with an action type "group"?  I figured out the controller supports it by viewing:

    https://<controller_ip>:8443/sdn/v2.0/models 

     

     

    FYI, listing the group entries displays this (this shows that I was able to insert group table entries): 

     

    /of/datapaths/<my_dpid>/groups

     

     

    {
    "version": "1.3.0",
    "groups": [
    {
    "id": 100,
    "type": "all",
    "buckets": [
    {
    "weight": 0,
    "watch_group": 4294967295,
    "watch_port": 0,
    "actions": [
    {
    "output": 23
    }
    ]
    }
    ]
    },
    {
    "id": 101,
    "type": "all",
    "buckets": [
    {
    "weight": 0,
    "watch_group": 4294967295,
    "watch_port": 0,
    "actions": [
    {
    "output": 23
    }
    ]
    }
    ]
    }
    ]
    }


  • 2.  RE: Adding flows with action type "group"

    Posted Feb 25, 2014 04:34 PM

    Solved.

     

    If anyone else is having a same problem, use "write_action" instead of "apply_action" in the instruction set.

     

    e.g.,

    ...

    "instructions": [{"write_actions": [{"group": 101}]}]

    ...



  • 3.  RE: Adding flows with action type "group"

    Posted Mar 03, 2014 01:58 PM

    Hi,

    Please let us know if your problem is solved.

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

     

    If you feel your question has been answered, please do let us know by marking this response as an  accepted solution.

    Thanks
    HP SDN Team