diff options
author | An-Cheng Huang <ancheng@vyatta.com> | 2008-03-31 17:13:30 -0700 |
---|---|---|
committer | An-Cheng Huang <ancheng@vyatta.com> | 2008-03-31 17:13:30 -0700 |
commit | 8a40af134224cb1411b54a74ebe7bf60c0effc4f (patch) | |
tree | f4456647e2a1e991ee9140c65c7f6a7aed66dba7 /scripts/ocf-IPaddr2-vyatta | |
parent | 3e1a8fb1e9b1ed7c61ea1f7b9f160778837102d1 (diff) | |
download | vyatta-cluster-8a40af134224cb1411b54a74ebe7bf60c0effc4f.tar.gz vyatta-cluster-8a40af134224cb1411b54a74ebe7bf60c0effc4f.zip |
add workaround for watchlink to IPaddr2-vyatta
Diffstat (limited to 'scripts/ocf-IPaddr2-vyatta')
-rwxr-xr-x | scripts/ocf-IPaddr2-vyatta | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/scripts/ocf-IPaddr2-vyatta b/scripts/ocf-IPaddr2-vyatta index 0d1101c..082b84f 100755 --- a/scripts/ocf-IPaddr2-vyatta +++ b/scripts/ocf-IPaddr2-vyatta @@ -373,21 +373,7 @@ delete_interface () { if [ $? -ne 0 ]; then return $OCF_ERR_GENERIC fi - - CMD="$IP2UTIL -o -f inet addr show $iface" - - ocf_log info "$CMD" - ADDR=`$CMD` - - if [ $? -ne 0 -o ! -z "$ADDR" ]; then - return $? - fi - - CMD="$IP2UTIL link set $iface down" - - ocf_log info "$CMD" - $CMD - return $? + return 0 } # |