[Openstack] [Nova] Right method to delete a tap interface

Edgar Magana emagana at plumgrid.com
Fri Mar 1 19:26:31 UTC 2013


Hi Chris,

Well, which one should I invoke if  I am not using OVS nor LinuxBridge?
Should I open a bug about having this method included in linux_net.py?

I can take care of adding that method.

Edgar

On 2/28/13 5:51 PM, "Chris Wright" <chrisw at sous-sol.org> wrote:

>* Edgar Magana (emagana at plumgrid.com) wrote:
>> I found a method to create a tap interface under:
>> nova/nova/network/linux_net.py
>> def create_tap_dev(dev, mac_address=None):
>> 
>> But I can't find the one for deleting a tap interface, can somebody
>>tell me
>> the right way to do it?
>
>I believe it's done w/ "ip link delete" which is hand coded in a couple
>of spots.  One caller of create_tap_dev
>QuantumLinuxBridgeInterfaceDriver::plug does it in ::unplug (opencoded).
>Other LibvirtGenericVIFDriver::plug_ovs_ethernet does it in
>unplug_ovs_ethernet via delete_ovs_vif_port
>
>thanks,
>-chris
>






More information about the Openstack mailing list