ia64/xen-unstable

changeset 8307:2b09e58cb108

Use new do_without_error function to squelch the errors when closing down an
interface.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
author emellor@leeni.uk.xensource.com
date Fri Dec 09 10:50:49 2005 +0000 (2005-12-09)
parents a12bd9e8fdf8
children 10220071deff
files tools/examples/vif-bridge
line diff
     1.1 --- a/tools/examples/vif-bridge	Fri Dec 09 10:50:26 2005 +0000
     1.2 +++ b/tools/examples/vif-bridge	Fri Dec 09 10:50:49 2005 +0000
     1.3 @@ -61,9 +61,8 @@ case "$command" in
     1.4          ;;
     1.5  
     1.6      offline)
     1.7 -        brctl delif "$bridge" "$vif" ||
     1.8 -          log debug "brctl delif $bridge $vif failed"
     1.9 -        ifconfig "$vif" down || log debug "ifconfig $vif down failed"
    1.10 +        do_without_error brctl delif "$bridge" "$vif"
    1.11 +        do_without_error ifconfig "$vif" down
    1.12          ;;
    1.13  esac
    1.14