Re: [PATCH 2/5] Avoid reporting an error if veth device is already deleted

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 10/02/2013 05:31 AM, Daniel P. Berrange wrote:
> From: "Daniel P. Berrange" <berrange@xxxxxxxxxx>
> 
> The kernel automatically destroys veth devices when cleaning
> up the container network namepace. During normal shutdown, it

s/namepace/namespace/

> is thus likely that the attempt to run 'ip link del vethN'
> will fail. If it fails, check if the device exists, and avoid
> reporting an error if it has gone. This switches to use the
> virCommand APIs instead of virRun too.
> 
> Signed-off-by: Daniel P. Berrange <berrange@xxxxxxxxxx>
> ---
>  src/util/virnetdevveth.c | 17 ++++++++++++++---
>  1 file changed, 14 insertions(+), 3 deletions(-)

ACK.

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]