[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.

-Tommy

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?

Thanks,

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.
Best,
Tommy Romano

_______________________________________________
discuss mailing list
discuss at openvswitch.org<mailto:discuss at openvswitch.org>
https://mail.openvswitch.org/mailman/listinfo/ovs-discuss<https://urldefense.proofpoint.com/v2/url?u=https-3A__mail.openvswitch.org_mailman_listinfo_ovs-2Ddiscuss&d=DwMFaQ&c=5VD0RTtNlTh3ycd41b3MUw&r=M1N9E9dRwci4IBhb8liI8A&m=m1lX0ZBN8mFZ3s8pT_l2U2BsyCoPdF3kInb8scZYemQ&s=loiT0c8okO0RFKy4z9FL7XxxABCya0iObvrnPuVShGE&e=>



--
Blue Lang
PM | Veracity

3423 Piedmont Rd NE

Suite 350

Atlanta, GA  30305
Cell:  (770) 265-1381<tel:+17702651381>
https://www.linkedin.com/in/bluelang/
<https://urldefense.proofpoint.com/v2/url?u=https-3A__www.linkedin.com_in_bluelang_&d=DwMFaQ&c=5VD0RTtNlTh3ycd41b3MUw&r=M1N9E9dRwci4IBhb8liI8A&m=m1lX0ZBN8mFZ3s8pT_l2U2BsyCoPdF3kInb8scZYemQ&s=2qJv7BGMLUnEA1Y2CQJYu61x4IqoJSdn5hH4g9A3WfM&e=>
blue at veracity.io<mailto:blue at veracity.io>
www.veracity.io<https://urldefense.proofpoint.com/v2/url?u=http-3A__www.veracity.io&d=DwMFaQ&c=5VD0RTtNlTh3ycd41b3MUw&r=M1N9E9dRwci4IBhb8liI8A&m=m1lX0ZBN8mFZ3s8pT_l2U2BsyCoPdF3kInb8scZYemQ&s=ALPiMf9qYoePKSMlQmCJwKn1vXf_FdFOqypSAGVnRY4&e=>
[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