<div dir="ltr">There are plenty of controllers out there, including a couple in C - libfluid, for instance. Is your goal to bypass the OF client layer?<div><br></div><div>Thanks,</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Oct 16, 2017 at 5:05 PM, Tommy Romano <span dir="ltr">&lt;<a href="mailto:tomrom95@fb.com" target="_blank">tomrom95@fb.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">







<div bgcolor="white" lang="EN-US" link="#0563C1" vlink="#954F72">
<div class="m_6796011914081210109WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt">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:<wbr>ofctrl_add_flow(…), but this will require quite a bit of legwork.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Best,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Tommy Romano<u></u><u></u></span></p>
</div>
</div>

<br>______________________________<wbr>_________________<br>
discuss mailing list<br>
<a href="mailto:discuss@openvswitch.org">discuss@openvswitch.org</a><br>
<a href="https://mail.openvswitch.org/mailman/listinfo/ovs-discuss" rel="noreferrer" target="_blank">https://mail.openvswitch.org/<wbr>mailman/listinfo/ovs-discuss</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div style="font-size:14px;line-height:normal"><font face="arial, helvetica, sans-serif">Blue Lang</font></div><div style="font-size:14px;line-height:normal"><font face="arial, helvetica, sans-serif"><font color="#000000">PM </font><b style="font-size:12pt"><span style="color:rgb(192,80,77)">| </span></b>Veracity </font></div><div style="font-size:14px;line-height:normal"><div style="font-size:12.8px"><p style="margin:0in 0in 0.0001pt"><span style="font-size:14px"><font face="arial, helvetica, sans-serif">3423 Piedmont Rd NE<u></u><u></u></font></span></p></div><div style="font-size:12.8px"><p style="margin:0in 0in 0.0001pt"><span style="font-size:14px"><font face="arial, helvetica, sans-serif">Suite 350<u></u><u></u></font></span></p></div><div style="font-size:12.8px"><p style="margin:0in 0in 0.0001pt"><span style="font-size:14px"><font face="arial, helvetica, sans-serif">Atlanta, GA  30305</font></span></p></div></div><div style="font-size:14px;line-height:normal"><font face="arial, helvetica, sans-serif">Cell:  <a href="tel:+17702651381" target="_blank">(770) 265-1381</a><br></font></div><div style="line-height:normal"><a href="https://www.linkedin.com/in/bluelang/" target="_blank"><font face="arial, helvetica, sans-serif"><span style="font-size:14px">https://www.linkedin.com/in/bluelang/</span><br></font></a></div><div style="font-size:14px;line-height:normal"><a href="mailto:blue@veracity.io" target="_blank"><font face="arial, helvetica, sans-serif">blue@veracity.io</font></a></div><div style="font-size:14px;line-height:normal"><a href="http://www.veracity.io" target="_blank"><font face="arial, helvetica, sans-serif">www.veracity.io</font></a></div><div style="font-family:Calibri,sans-serif;font-size:14px;line-height:normal"><img src="cid:7F6FF7CF-4327-4C3B-BD13-9C258997225D"></div></div></div></div></div></div></div></div></div>
</div>