<div dir="ltr">Yes. So we can define multiple logical switches per network and ovn keeps vlan maps that ovs agent used to maintain and do the tunneling. My confusion was from lport-add command that did not have host info, so if there is no neutron, the cms has to maintain the host to lport association and we can't query from NB-DB. Makes sense.<div><br></div><div>-Murali</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Oct 2, 2015 at 11:46 AM, Russell Bryant <span dir="ltr"><<a href="mailto:rbryant@redhat.com" target="_blank">rbryant@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 10/02/2015 02:26 PM, Murali R wrote:<br>
> Hi Russell,<br>
><br>
> Thank you these are really good. Had a quick question. When you create a<br>
> logical switch in your first script (line 23) - at what point is it<br>
> associated with br-int ? Is it on line 45? So I can create any switch<br>
> and when I associated logical port it associates logical switch ? Or is<br>
> there a different way we can associate logical-phy switches? I was<br>
> looking to get the logical associations during startup initialization.<br>
<br>
</span>To clarify, I believe you're talking about the first script from the<br>
tutorial [1], which is:<br>
<br>
  <a href="https://github.com/openvswitch/ovs/blob/master/tutorial/ovn/env1/setup.sh" rel="noreferrer" target="_blank">https://github.com/openvswitch/ovs/blob/master/tutorial/ovn/env1/setup.sh</a><br>
<br>
Most of that script is all configuring logical topology.  OVN does<br>
nothing to the network until ovn-controller sees a port appear on br-int<br>
that maps to a logical port.  This mapping is done by setting the<br>
"iface-id" to the name of the logical port.<br>
<br>
Once ovn-controller has mapped a port on br-int to a logical port, it<br>
can configure the switch appropriately for that port.<br>
<br>
Does that make sense?<br>
<br>
[1] <a href="https://github.com/openvswitch/ovs/blob/master/tutorial/OVN-Tutorial.md" rel="noreferrer" target="_blank">https://github.com/openvswitch/ovs/blob/master/tutorial/OVN-Tutorial.md</a><br>
<div class="HOEnZb"><div class="h5"><br>
--<br>
Russell Bryant<br>
<br>
__________________________________________________________________________<br>
OpenStack Development Mailing List (not for usage questions)<br>
Unsubscribe: <a href="http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe" rel="noreferrer" target="_blank">OpenStack-dev-request@lists.openstack.org?subject:unsubscribe</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" rel="noreferrer" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
</div></div></blockquote></div><br></div>