<div>Hi zhi,</div><div><br></div><div>I'm diving into nova vif codes this morning so I think I can give you an answer about it.</div><div><br></div><div>Your guess is correct. If you use libvirt, you can find a xml file in your nova data directory. You can find following codes in this xml file:</div><div><br></div><div><div>    <interface type="bridge"></div><div>      <mac address="fa:16:3e:ff:c5:b6"/></div><div>      <model type="virtio"/></div><div>      <driver name="qemu"/></div><div>      <source bridge="qbr8b77eaa3-00"/></div><div>      <target dev="tap8b77eaa3-00"/></div><div>    </interface></div></div><div><div><br></div><div>So, when nova-compute create and start this domain, it will plug dev '<span style="line-height: 1.5;">tap8b77eaa3-00</span><span style="line-height: 1.5;">' into bridge '</span><span style="line-height: 1.5;">qbr8b77eaa3-00' by libvirtd </span>automatically<span style="line-height: 1.5;">.</span></div><div><span style="line-height: 1.5;"><br></span></div><div>You can get more information from here: <a href="https://libvirt.org/formatdomain.html#elementsNICS" style="line-height: 1.5;">https://libvirt.org/formatdomain.html#elementsNICS</a></div><div><br></div><div style="font-size: 12px;font-family: Arial Narrow;padding:2px 0 2px 0;">------------------ 原始邮件 ------------------</div><div style="font-size: 12px;background:#efefef;padding:8px;"><div><b>发件人:</b> "zhi";<changzhi1990@gmail.com>;</div><div><b>发送时间:</b> 2015年5月25日(星期一) 中午1:59</div><div><b>收件人:</b> "openstack-dev"<openstack-dev@lists.openstack.org>; <wbr></div><div></div><div><b>主题:</b> [openstack-dev] Add tap device to ovs bridge when attach aninterface to vm.</div></div><div><br></div><div dir="ltr">Hi, all. I want to add tap device to br-ex rather than linux bridge when attaching an interface to a vm. I find some code in nova/virt/libvirt/vif.py in function plug_ovs_hybrid like this " utils.execute('brctl', 'addbr', br_name, run_as_root=True) ". <div>I find no place which add tap device to linux bridge. Does libvirt do it? Could some helps me? thx.</div></div></div>