Hi,

On 2015年09月07日 07:25, Samuele Redaelli wrote:
> Hi everybody,
> 
> I am testing the group table feature with Ryu. My test environment is Mininet 
> 2.2.1 with ovswitch 2.3.1.
> I have a very simple topology with 3 host connected to a single switch. My 
> attempt is to send data from host1 to the other two host. I install the 
> following group rule (by using the app ofctl_rest.py):
> 
> {
>     "dpid": 0000000000000001,
>     "type": "ALL",
>     "group_id": 1,
>     "buckets":
>     [
>         {
>             "actions":
>         [
>          {
>         "type": "OUTPUT",
>             "port": 3   
>             },
>         {
>         "type": "OUTPUT",
>             "port": 2        
>         }
>             ]   
>         }
>     ]
>  }
> 
> and then:
> 
> {
>     "dpid": 0000000000000001,
>     "priority": 1111,
>     "match":{
>         "in_port": 1
>     },
>     "actions":[
>         {
>             "type":"GROUP",
>             "group_id": 1
>         }
>     ]
>  }' http://localhost:8080/stats/flowentry/add
> 
> The problem is that only the host on the port 3 receives the packets sent by 
> the host on port 1. I don't understand if this is a probelm of the ovswitch 
> (which I tried to explicitly configure to use OpenFlow v.1.3) or I am doing 
> something wrong with rule sintax or similar. If I invert the actions in the 
> bucket (first output on port 2 and then output on port 3) only the host on 
> port 2 receives tha packets. Can anyone help me?

I think that OVS is working as OFspec.

"7.3.4.2 Modify Group Entry Message" of OFspec1.3.4 says:

  When the bucket is selected for a packet,
  its actions are applied to the packet as an action set.

and,

"5.10 Action Set" of OFspec1.3.4 says:

  When an action of a specific type is added in
  the action set, if an action of the same type exist,
  it is overwritten by the later action. 

How is the following?

{
    "dpid": 0000000000000001,
    "type": "ALL",
    "group_id": 1,
    "buckets":
    [
        {
            "actions":
            [
            {
            "type": "OUTPUT",
                "port": 3
                }
            ],
        },
        {
            "actions":
            [
            {
            "type": "OUTPUT",
                "port": 2
                }
            ],
        }

    ]
 }

thanks,

> 
> Thanks in advance,
> 
> Samuele Redaelli - MSC student
> 
> 
> ------------------------------------------------------------------------------
> 
> 
> 
> _______________________________________________
> Ryu-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/ryu-devel
> 

------------------------------------------------------------------------------
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to