Hi,
First, please confirm your group entry and flow entry are installed as expected
by using the GroupDesc and FlowStats messages.
http://ryu.readthedocs.io/en/latest/app/ofctl_rest.html#get-group-description-stats
http://ryu.readthedocs.io/en/latest/app/ofctl_rest.html#get-all-flows-stats
And, there seem to be some syntax errors on your command.
$ curl -X POST -d '{
"dpid": 5,
"type": "SELECT",
"group_id": 10,
"buckets": [
{
"weight":1, # a comma was missing.
"actions": [
{
"type": "OUTPUT",
"port": 2
}
]
},
{
"weight":1, # a comma was missing.
"actions": [
{
"type": "OUTPUT",
"port": 3
}
]
}
]
}' http://localhost:8080/stats/groupentry/add
$ curl -X POST -d '{
"dpid": 5,
"priority": 10,
"match":{
"in_port":1
},
"actions":[
{
"type":"GROUP",
"group_id": 10 # please specify "goup_id", not "port".
}
]
}' http://localhost:8080/stats/flowentry/add
Thanks,
Iwase
On 2017年02月23日 11:22, Hsu YT wrote:
> Hi ,
>
> I tried to add a group entry to do multipath routing with ovs version 2.3.2.
>
>
> $ curl -X POST -d '{
> "dpid": 5,
> "type": "SELECT",
> "group_id": 10,
> "buckets": [
> {
> "weight":1
> "actions": [
> {
> "type": "OUTPUT",
> "port": 2
> }
> ]
> },
> {
> "weight":1
> "actions": [
> {
> "type": "OUTPUT",
> "port": 3
> }
> ]
> }
> ]
> }' http://localhost:8080/stats/groupentry/add
>
> $ curl -X POST -d '{
> "dpid": 5,
> "priority": 10,
> "match":{
> "in_port":1
> },
> "actions":[
> {
> "type":"GROUP",
> "port": 10
> }
> ]
> }' http://localhost:8080/stats/flowentry/add
> Althoughpackets arrivingat switch 5 can match theflow entry which point to
> the group table,
> Ifound packet_count of the corresponding group entryis zero, meaning that no
> packets really go to the group entry.
> Is there any mistake of my configurations ?
> And Itried to configure my switch manually first but got the same result.
> Can you help me to address this problem ? Thanks!
>
>
>
>
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, SlashDot.org! http://sdm.link/slashdot
>
>
>
> _______________________________________________
> Ryu-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/ryu-devel
>
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel