]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
Avoid reporting an error if veth device is already deleted
authorDaniel P. Berrange <berrange@redhat.com>
Wed, 2 Oct 2013 10:16:14 +0000 (11:16 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Thu, 3 Oct 2013 10:28:06 +0000 (11:28 +0100)
commit10caf94ddc568d36561d89ca28fe0c58154a50f9
tree119d47aa4d5fc5fda5548ef365a8e4eacb16714e
parentf5eae5708623401f50a07729283624423894ed68
Avoid reporting an error if veth device is already deleted

The kernel automatically destroys veth devices when cleaning
up the container network namespace. During normal shutdown, it
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@redhat.com>
po/POTFILES.in
src/util/virnetdevveth.c