<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns:mv="http://macVmlSchemaUri" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Title" content="">
<meta name="Keywords" content="">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:Arial;
        panose-1:2 11 6 4 2 2 2 2 2 4;}
@font-face
        {font-family:"Cambria Math";
        panose-1:0 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
span.msoIns
        {mso-style-type:export-only;
        mso-style-name:"";
        text-decoration:underline;
        color:teal;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style>
</head>
<body bgcolor="white" lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal">Yes that is essentially the goal. I will look into some of these libraries and see if any of them help.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">-Tommy<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:12.0pt;color:black">From: </span></b><span style="font-size:12.0pt;color:black">Blue Lang <blue@veracity.io><br>
<b>Date: </b>Monday, October 16, 2017 at 3:10 PM<br>
<b>To: </b>Tommy Romano <tomrom95@fb.com><br>
<b>Cc: </b>"ovs-discuss@openvswitch.org" <ovs-discuss@openvswitch.org><br>
<b>Subject: </b>Re: [ovs-discuss] Adding/Removing Flows Programmatically in C Application<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">There are plenty of controllers out there, including a couple in C - libfluid, for instance. Is your goal to bypass the OF client layer?
<o:p></o:p></p>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Thanks,<o:p></o:p></p>
</div>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal">On Mon, Oct 16, 2017 at 5:05 PM, Tommy Romano <<a href="mailto:tomrom95@fb.com" target="_blank">tomrom95@fb.com</a>> wrote:<o:p></o:p></p>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in">
<div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">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.<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">Best,<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">Tommy Romano<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><br>
_______________________________________________<br>
discuss mailing list<br>
<a href="mailto:discuss@openvswitch.org">discuss@openvswitch.org</a><br>
<a href="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=" target="_blank">https://mail.openvswitch.org/mailman/listinfo/ovs-discuss</a><o:p></o:p></p>
</blockquote>
</div>
<p class="MsoNormal"><br>
<br clear="all">
<o:p></o:p></p>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<p class="MsoNormal">-- <o:p></o:p></p>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Arial",sans-serif">Blue Lang</span><span style="font-size:10.5pt"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Arial",sans-serif;color:black">PM </span><b><span style="font-size:12.0pt;font-family:"Arial",sans-serif;color:#C0504D">| </span></b><span style="font-size:10.5pt;font-family:"Arial",sans-serif">Veracity </span><span style="font-size:10.5pt"><o:p></o:p></span></p>
</div>
<div>
<div>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:10.5pt;font-family:"Arial",sans-serif">3423 Piedmont Rd NE</span><span style="font-size:9.5pt"><o:p></o:p></span></p>
</div>
<div>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:10.5pt;font-family:"Arial",sans-serif">Suite 350</span><span style="font-size:9.5pt"><o:p></o:p></span></p>
</div>
<div>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:10.5pt;font-family:"Arial",sans-serif">Atlanta, GA 30305</span><span style="font-size:9.5pt"><o:p></o:p></span></p>
</div>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Arial",sans-serif">Cell: <a href="tel:+17702651381" target="_blank">(770) 265-1381</a></span><span style="font-size:10.5pt"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><a href="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=" target="_blank"><span style="font-size:10.5pt;font-family:"Arial",sans-serif">https://www.linkedin.com/in/bluelang/</span><span style="font-family:"Arial",sans-serif"><br>
</span></a><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt"><a href="mailto:blue@veracity.io" target="_blank"><span style="font-family:"Arial",sans-serif">blue@veracity.io</span></a><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt"><a href="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=" target="_blank"><span style="font-family:"Arial",sans-serif">www.veracity.io</span></a><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt"><img border="0" width="127" height="52" id="_x0000_i1025" src="cid:image001.png@01D34692.4B865260"><o:p></o:p></span></p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>