[ovs-discuss] custom action help
Andrei Andone
andrei.andone at softvision.ro
Wed Sep 25 15:17:35 UTC 2013
Yeah, I could use multiple `set_field` actions, but then the flow would
be really long (and for now I only need to change around 7 fields and
the flow start being pretty hard to read).
Example:
ovs-ofctl add-flow my_bridge "in_port=1
actions=set_field:value->field1,set_field:value->field2,set_field:value->field3,
set_field:value->field4,set_field:value->field5,set_field:value->field6,set_field:value->field7,output:2"
To me it seems a bit hard to read and understand. Right now I have my
action and the flow changes to:
ovs-ofctl add-flow my_bridge "in_port=1
actions=my_action:value:value:...,output:2"
On 09/25/2013 06:10 PM, Ben Pfaff wrote:
> On Wed, Sep 25, 2013 at 11:31:13AM +0300, Andrei Andone wrote:
>> What do you guys usually use or recommend regarding new complex
>> actions (complex as in it modifies more fields), is it better to
>> define the action similarly to the nicira extended actions or should
>> I just create an action for each field that needs to be modified?
> If you follow the pattern already in the tree, you don't need to create
> new actions to modify the fields that you add: you can use
> NXAST_REG_LOAD or OFPAT12_SET_FIELD.
>
--
Andrei Andone
SOFTVISION | 57 Republicii Street, 400489 Cluj-Napoca, Romania
Email: andrei.andone at softvision.ro <mailto:andrei.andone at softvision.ro>
| Web: www.softvision.ro <http://www.softvision.ro>
The content of this communication is classified as SOFTVISION
Confidential and Proprietary Information.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://openvswitch.org/pipermail/ovs-discuss/attachments/20130925/b27ee397/attachment.html>
More information about the discuss
mailing list