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

Tommy Romano tomrom95 at fb.com
Mon Oct 16 22:20:27 UTC 2017

Yes that is essentially the goal. I will look into some of these libraries and see if any of them help.


From: Blue Lang <blue at veracity.io>
Date: Monday, October 16, 2017 at 3:10 PM
To: Tommy Romano <tomrom95 at fb.com>
Cc: "ovs-discuss at openvswitch.org" <ovs-discuss at openvswitch.org>
Subject: Re: [ovs-discuss] Adding/Removing Flows Programmatically in C Application

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<mailto: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.
Tommy Romano

discuss mailing list
discuss at openvswitch.org<mailto:discuss at openvswitch.org>

Blue Lang
PM | Veracity

3423 Piedmont Rd NE

Suite 350

Atlanta, GA  30305
Cell:  (770) 265-1381<tel:+17702651381>
blue at veracity.io<mailto:blue at veracity.io>
[cid:image001.png at 01D34692.4B865260]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openvswitch.org/pipermail/ovs-discuss/attachments/20171016/7b1c861b/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 5373 bytes
Desc: image001.png
URL: <http://mail.openvswitch.org/pipermail/ovs-discuss/attachments/20171016/7b1c861b/attachment.png>

More information about the discuss mailing list