ia64/xen-unstable

changeset 8063:801c6363501b

Only write a success node when coming online, not going offline.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
author emellor@leeni.uk.xensource.com
date Fri Nov 25 17:09:49 2005 +0000 (2005-11-25)
parents 3c01d53e383d
children 701ec436d5ad
files tools/examples/vif-nat tools/examples/vif-route
line diff
     1.1 --- a/tools/examples/vif-nat	Fri Nov 25 17:08:22 2005 +0000
     1.2 +++ b/tools/examples/vif-nat	Fri Nov 25 17:09:49 2005 +0000
     1.3 @@ -55,4 +55,8 @@ ip r ${ipcmd} ${ip} dev ${vif} src ${mai
     1.4  
     1.5  handle_iptable
     1.6  
     1.7 -success
     1.8 +log debug "Successful vif-nat $command for $vif."
     1.9 +if [ "$command" == "online" ]
    1.10 +then
    1.11 +  success
    1.12 +fi
     2.1 --- a/tools/examples/vif-route	Fri Nov 25 17:08:22 2005 +0000
     2.2 +++ b/tools/examples/vif-route	Fri Nov 25 17:09:49 2005 +0000
     2.3 @@ -47,4 +47,8 @@ fi
     2.4  
     2.5  handle_iptable
     2.6  
     2.7 -success
     2.8 +log debug "Successful vif-route $command for $vif."
     2.9 +if [ "$command" == "online" ]
    2.10 +then
    2.11 +  success
    2.12 +fi