[ovs-discuss] Adding/Removing Flows Programmatically in C Application

Blue Lang blue at veracity.io
Mon Oct 16 22:10:09 UTC 2017

There are plenty of controllers out there, including a couple in C -
libfluid, for instance. Is your goal to bypass the OF client layer?


On Mon, Oct 16, 2017 at 5:05 PM, Tommy Romano <tomrom95 at fb.com> wrote:

> My project was previously calling system commands like ‘ovs-ofctl
> add-flow’ directly from C, but we would like to do this programmatically
> now, by calling into the openvswitch library. After looking at this for a
> bit and what methods I would have to call, I’ve realized this is non
> trivial, and I can’t find any easily exposed methods to add and delete
> flows. Does anyone have an example anywhere of calling into openvswitch
> methods directly to add/remove flows? So far the best way I can find is
> calling into ovn/controller/ofctrl.h:ofctrl_add_flow(…), but this will
> require quite a bit of legwork.
> Best,
> Tommy Romano
> _______________________________________________
> discuss mailing list
> discuss at openvswitch.org
> https://mail.openvswitch.org/mailman/listinfo/ovs-discuss

Blue Lang
PM *| *Veracity

3423 Piedmont Rd NE

Suite 350

Atlanta, GA  30305
Cell:  (770) 265-1381 <+17702651381>
blue at veracity.io
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openvswitch.org/pipermail/ovs-discuss/attachments/20171016/45e111e1/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Veracity-horizontal-logo-tiny_sig.png
Type: image/png
Size: 5372 bytes
Desc: not available
URL: <http://mail.openvswitch.org/pipermail/ovs-discuss/attachments/20171016/45e111e1/attachment-0001.png>

More information about the discuss mailing list