<div dir="ltr">Thanks Bob :)<div><br></div><div>Its really a nice explanation.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jan 23, 2015 at 1:01 PM, Harish Patil <span dir="ltr"><<a href="mailto:harish.patil@qlogic.com" target="_blank">harish.patil@qlogic.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">><br>
<br>
>Hi Harish,<br>
><br>
>Port binding in ML2 is the process by which a mechanism driver (or once<br>
><a href="https://blueprints.launchpad.net/openstack/?searchtext=ml2-hierarchical-po" target="_blank">https://blueprints.launchpad.net/openstack/?searchtext=ml2-hierarchical-po</a><br>
>rt-binding<br>
>is merged, potentially a set of mechanism drivers) is selected for the<br>
>port, determining how connectivity is provided for that port. Since ML2<br>
>is designed to support heterogeneous deployments, its possible for<br>
>different ports to be bound using different mechanism drivers.<br>
><br>
>The end results of port binding visible outside ML2 are the values of<br>
>the binding:vif_type and binding:vif_details port attributes that<br>
>control the Nova VIF driver behavior.  The inputs to the port binding<br>
>process are the port and the network to which the port belongs,<br>
>including the network's set of segments, as well as the values of the<br>
>binding:host_id, binding:vnic_type, and binding:profile port attributes.<br>
>Nova (or any L3, DHCP, or service agent owning the port) sets<br>
>binding:host_id to indicate the host on which the port is being bound.<br>
>The setting of this attribute triggers the port binding process.<br>
><br>
>During port binding, the bind_port() method is called by ML2 on each<br>
>registered mechanism driver until one driver indicates it has succeeded<br>
>by calling PortContext.set_binding(). The driver calls<br>
>PortContext.set_binding()  with the identity of the network segment it<br>
>bound, and the values for the binding:vif_type and binding:vif_details<br>
>attributes. Typical mechanism drivers for L2 agents decide whether they<br>
>can bind the port by looking through the list of network segment for one<br>
>with a network_type value that the agent on the host identified by<br>
>binding:host_id can handle, and if relevant, a physical_network value<br>
>for which that agent has connectivity. The current L2 agent mechanism<br>
>drivers use agents_db info sent from the agents to the service via RPC,<br>
>including the agent's health and the bridge_mappings or<br>
>interface_mappings value that describes its connectivity to<br>
>physical_networks.<br>
><br>
>The doc strings in neutron.plugins.ml2.driver_api provide more detail on<br>
>port binding and the classes and methods involved.<br>
><br>
>Hope this helps,<br>
<br>
</div></div>Sure it does, thanks very much Bob.<br>
<div class="HOEnZb"><div class="h5"><br>
><br>
>-Bob<br>
><br>
>On 1/21/15 9:42 PM, Harish Patil wrote:<br>
>> Hello,<br>
>> I’m a newbie here. Can someone please explain to me as to what exactly<br>
>>is<br>
>> involved in ‘port_binding’ in ML2 mechanism driver and any specific<br>
>> pointers? Is it just an association with its corresponding L2 agent?<br>
>>What<br>
>> is mechanism driver expected to return back to port_bind?<br>
>><br>
>> Thanks<br>
>><br>
>> Harish<br>
>><br>
>><br>
>><br>
>><br>
>> ________________________________<br>
>><br>
>> This message and any attached documents contain information from the<br>
>>sending company or its parent company(s), subsidiaries, divisions or<br>
>>branch offices that may be confidential. If you are not the intended<br>
>>recipient, you may not read, copy, distribute, or use this information.<br>
>>If you have received this transmission in error, please notify the<br>
>>sender immediately by reply e-mail and then delete this message.<br>
>><br>
>>_________________________________________________________________________<br>
>>_<br>
>> OpenStack Development Mailing List (not for usage questions)<br>
>> Unsubscribe:<br>
>><a href="http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe" target="_blank">OpenStack-dev-request@lists.openstack.org?subject:unsubscribe</a><br>
>> <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
><br>
><br>
>__________________________________________________________________________<br>
>OpenStack Development Mailing List (not for usage questions)<br>
>Unsubscribe: <a href="http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe" target="_blank">OpenStack-dev-request@lists.openstack.org?subject:unsubscribe</a><br>
><a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
><br>
<br>
<br>
<br>
________________________________<br>
<br>
This message and any attached documents contain information from the sending company or its parent company(s), subsidiaries, divisions or branch offices that may be confidential. If you are not the intended recipient, you may not read, copy, distribute, or use this information. If you have received this transmission in error, please notify the sender immediately by reply e-mail and then delete this message.<br>
__________________________________________________________________________<br>
OpenStack Development Mailing List (not for usage questions)<br>
Unsubscribe: <a href="http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe" target="_blank">OpenStack-dev-request@lists.openstack.org?subject:unsubscribe</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><b style="color:rgb(102,102,102)">Regards,</b><div><b style="color:rgb(102,102,102)">Romil <br></b><br></div></div></div>
</div>