<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style id="owaParaStyle" type="text/css">
<!--
p
{margin-top:0;
margin-bottom:0}
-->
</style>
</head>
<body>
<div style="direction:ltr; font-family:Tahoma; color:#000000; font-size:10pt">Thank you all for that was helpful. I also got some more information(to use agent/linux/interface.py) from neutron mailing list.
<br>
<br>
<br>
<div style="font-family:Times New Roman; color:#000000; font-size:16px">
<hr tabindex="-1">
<div id="divRpF484157" style="direction:ltr"><font color="#000000" face="Tahoma" size="2"><b>From:</b> Salvatore Orlando [sorlando@nicira.com]<br>
<b>Sent:</b> Thursday, January 09, 2014 3:16 AM<br>
<b>To:</b> Jonathan Proulx<br>
<b>Cc:</b> Ageeleshwar Kandavelu; openstack@lists.openstack.org<br>
<b>Subject:</b> Re: [Openstack] Neutron port-create command<br>
</font><br>
</div>
<div></div>
<div>
<div dir="ltr">Hi and apologies for the delay in the reply.
<div><br>
</div>
<div>The neutron API operations define "logical entries", which pretty much means they just exist in the database.</div>
<div>The database provides agents information concerning how to wire these port.</div>
<div><br>
</div>
<div>If you look at the OVS/ML2 plugins, what does the 'magic' for nova instances, is actually the layer2 agent (aka ovs agent), which is able to wire any port plugged into the integration bridge, but does not plug ports itself - which, in my opinion, is conceptually
correct.</div>
<div><br>
</div>
<div>When the interface does not belong to nova, but to a different service the process is similar, as mentioned by Jonathan.</div>
<div>The only difference is that the service itself configures the interface and performs IP configuration for it.</div>
<div>For instance the l3 agent:</div>
<div> 1) creates the devices for router interfaces</div>
<div> 2) assigns the corresponding neutron port-id setting ovs' external ids</div>
<div> 3) configures ip information, and if necessary iptables too</div>
<div>and then the ovs agent configures the ovs ports corresponding to these devices in order to ensure l2 connectivity.</div>
<div><br>
</div>
<div>Hope this helps,</div>
<div>Salvatore</div>
</div>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">On 8 January 2014 14:49, Jonathan Proulx <span dir="ltr">
<<a href="mailto:jon@jonproulx.com" target="_blank">jon@jonproulx.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex; border-left:1px #ccc solid; padding-left:1ex">
Interesting question.<br>
<br>
I've not used neutron in that way, if you don't get any relevant<br>
responses here I'd suggest reposting under a different subject like<br>
"programatically binding to neutron ports" or something similar, you<br>
may get a different set of readers, perhaps posting to the<br>
openstack-dev list (if you do be sure to include '[Neutron]' in your<br>
subject) as this is something typically done by services<br>
(nuetron-dhcp-agent, neutron-l3-agent, nova-compute) rather than a<br>
manual action by an operator or end user.<br>
<br>
-Jon<br>
<div class="HOEnZb">
<div class="h5"><br>
On Tue, Jan 7, 2014 at 11:33 PM, Ageeleshwar Kandavelu<br>
<<a href="mailto:Ageeleshwar.Kandavelu@csscorp.com" target="_blank">Ageeleshwar.Kandavelu@csscorp.com</a>> wrote:<br>
> Lets say I do not want to launch nova instances that connect to a port. I want to introduce a service that binds to that port similar to dnsmasq. How do I make neutron perform this for me.<br>
> ________________________________________<br>
> From: <a href="mailto:jonathan.proulx@gmail.com" target="_blank">jonathan.proulx@gmail.com</a> [<a href="mailto:jonathan.proulx@gmail.com" target="_blank">jonathan.proulx@gmail.com</a>] on behalf of Jonathan Proulx [<a href="mailto:jon@jonproulx.com" target="_blank">jon@jonproulx.com</a>]<br>
> Sent: Tuesday, January 07, 2014 8:33 PM<br>
> To: Ageeleshwar Kandavelu<br>
> Cc: <a href="mailto:openstack@lists.openstack.org" target="_blank">openstack@lists.openstack.org</a><br>
> Subject: Re: [Openstack] Neutron port-create command<br>
><br>
> On Tue, Jan 7, 2014 at 12:22 AM, Ageeleshwar Kandavelu<br>
> <<a href="mailto:Ageeleshwar.Kandavelu@csscorp.com" target="_blank">Ageeleshwar.Kandavelu@csscorp.com</a>> wrote:<br>
>> I am using neutron openvswitch plugin. I successfully created a port using<br>
>> neutron port-create, but I do not see the newly created port when I do<br>
>> 'ovs-vsctl show'. Is it that the port created is just a logical entity that<br>
>> just exists only in DB and only when a VM is launched It is created in<br>
>> openvswitch?<br>
><br>
> port-create creates the port in the database, it's on a 'real thing'<br>
> until it is associated with an instance. At that point you can see it<br>
> in ovs tools.<br>
><br>
> Note you don't need to create ports if you associate in instance with<br>
> a network it will dynamically create ports that are removed on shut<br>
> down. This is the more 'normal' use case. I use port-create to get<br>
> static MAC addresses for certain node locked software services (flexlm<br>
> license server in my case), there are likely other uses and I wouldn't<br>
> be surprised if using pre defined ports could shave a few seconds off<br>
> start up times, but not personally certain about that.<br>
><br>
> -Jon<br>
> <a href="http://www.csscorp.com/common/email-disclaimer.php" target="_blank">http://www.csscorp.com/common/email-disclaimer.php</a><br>
<br>
_______________________________________________<br>
Mailing list: <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" target="_blank">
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a><br>
Post to : <a href="mailto:openstack@lists.openstack.org" target="_blank">openstack@lists.openstack.org</a><br>
Unsubscribe : <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" target="_blank">
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a><br>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</div>
http://www.csscorp.com/common/email-disclaimer.php
</body>
</html>