You might want to try it with OpenFlow1.5. Make sure you enable OpenFlow15
on the target vswitchd

The following commands work on my machine with ovs 2.7.

$ ovs-ofctl -O OpenFlow15 add-group br-int "group_id=1, type=select,
selection_method=hash, fields(ip_src, nw_proto, tcp_src)
bucket=actions=set_field:0x1->metadata, resubmit(,40),
bucket=actions=set_field:0x2->metadata, resubmit(,40)"
$ ovs-ofctl -O OpenFlow15 dump-groups br-int

You can find more information about select group here:
http://docs.openvswitch.org/en/latest/faq/openflow/
- Q: How does OVS divide flows among buckets in an OpenFlow “select” group?

-Yi-Hung

On Tue, Apr 4, 2017 at 11:30 AM, Ching Sun <[email protected]> wrote:
> Fields(ip_src, nw_proto, tcp_src) doesn't work. Any other idea?
>
> -Ching
>
> -----Original Message-----
> From: Yi-Hung Wei [mailto:[email protected]]
> Sent: Monday, April 03, 2017 5:25 PM
> To: Ching Sun
> Cc: [email protected]
> Subject: Re: [ovs-discuss] ovs-ofctl add-group with
selection_method=hash, fields
>
> From 'man ovs-ofctl', how about fields(ip_src, nw_proto, tcp_src).
>
> -Yi-Hung
>
> On Mon, Apr 3, 2017 at 11:53 AM, Ching Sun <[email protected]> wrote:
>> Hi all,
>>
>>
>>
>> I tried add group with selection_method=hash and multiple fields, like
the
>> following:
>>
>>
>>
>> ovs-ofctl -O OpenFlow13 add-group br-int "group_id=1, type=select,
>> selection_method=hash, fields=ip_src, nw_proto, tcp_src,
>> bucket=actions=set_field:0x1->metadata, resubmit(,40),
>> bucket=actions=set_field:0x2->metadata, resubmit(,40)"
>>
>>
>>
>> And got an error “ovs-ofctl: unknown keyword nw_proto”. I thought
nw_proto
>> was the right keyword, can someone show me what are the right syntax to
do
>> this.
>>
>>
>>
>> Thanks,
>>
>> Ching
>>
>>
>>
>>
>> _______________________________________________
>> discuss mailing list
>> [email protected]
>> https://mail.openvswitch.org/mailman/listinfo/ovs-discuss
>>
_______________________________________________
discuss mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-discuss

Reply via email to