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
}
]
}
]
}
]
}