[ovs-discuss] Add new action.

劉瑋凱 liu923526 at gmail.com
Fri Feb 27 05:54:49 UTC 2015


I would like to add a new action,and I follow the FAQ below.(OVS version
2.3.1 and OVS-master)
Q: How do I add support for a new OpenFlow action?

A: Add your new action to "enum ofp_raw_action_type" in lib/ofp-actions.c,
following the existing pattern. Then recompile and fix all of the new
warnings, implementing new functionality for the new action as needed. (If
you configure with --enable-Werror, as described in INSTALL.md
<https://github.com/openvswitch/ovs/blob/master/INSTALL.md>, then it is
impossible to miss any warnings.)

If you need to add an OpenFlow vendor extension action for a vendor that
doesn't yet have any extension actions, then you will also need to edit
build-aux/extract-ofp-actions.

then I got this message when I add this action.

OFPT_ERROR (xid=0x4): OFPBAC_BAD_TYPE

OFPT_FLOW_MOD (xid=0x4):

(***truncated to 64 bytes from 80***)

00000000  01 0e 00 50 00 00 00 04-00 38 20 fe 00 01 00 00 |...P.....8 .....|

00000010  00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 |................|

00000020  00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 |................|

00000030  00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 |................|
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://openvswitch.org/pipermail/ovs-discuss/attachments/20150227/3dbfa11e/attachment-0002.html>


More information about the discuss mailing list