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

Chris Wright chrisw at sous-sol.org
Fri Mar 1 01:51:54 UTC 2013


* 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