← Back to team overview

openstack team mailing list archive

Re: [Nova] Right method to delete a tap interface

 

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@xxxxxxxxxxxx> wrote:

>* 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
>




Follow ups