openstack team mailing list archive
-
openstack team
-
Mailing list archive
-
Message #21395
Re: [Nova] Right method to delete a tap interface
* Edgar Magana (emagana@xxxxxxxxxxxx) 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
References