Gitweb:
http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=...
Commit: f26a3627a1087816fae1bb671623fc74bf653a90
Parent: b9306e19ba3f346326befd933c8ecdd9bc8973bf
Author: Marek 'marx' Grac <mgrac(a)redhat.com>
AuthorDate: Fri Jan 28 15:29:48 2011 +0100
Committer: Marek 'marx' Grac <mgrac(a)redhat.com>
CommitterDate: Wed Feb 23 18:38:08 2011 +0100
resource-agents: Add option disable_rdisc to ip.sh
rdisc is called by ip.sh which causes static routes to be updated by
dynamic ones. This option adds possibility to disable this feature.
Resolves: rhbz#620700
---
rgmanager/src/resources/ip.sh | 21 +++++++++++++++++++--
1 files changed, 19 insertions(+), 2 deletions(-)
diff --git a/rgmanager/src/resources/ip.sh b/rgmanager/src/resources/ip.sh
index 4f7e432..38d1ab9 100755
--- a/rgmanager/src/resources/ip.sh
+++ b/rgmanager/src/resources/ip.sh
@@ -121,6 +121,17 @@ meta_data()
<content type="string"/>
</parameter>
+ <parameter name="disable_rdisc">
+ <longdesc lang="en">
+ Disable updating of routing using RDISC protocol and
+ preserve static routes.
+ </longdesc>
+ <shortdesc lang="en">
+ Disable updating of routing using RDISC protocol
+ </shortdesc>
+ <content type="boolean"/>
+ </parameter>
+
</parameters>
<actions>
@@ -632,7 +643,10 @@ ipv6()
# Not sure if this is necessary for ipv6 either.
file=$(which rdisc 2>/dev/null)
if [ -f "$file" ]; then
- killall -HUP rdisc || rdisc -fs
+ if [ "$OCF_RESKEY_disable_rdisc" != "yes" ] && \
+ [ "$OCF_RESKEY_disable_rdisc" != "1" ]; then
+ killall -HUP rdisc || rdisc -fs
+ fi
fi
return 0
@@ -711,7 +725,10 @@ ipv4()
file=$(which rdisc 2>/dev/null)
if [ -f "$file" ]; then
- killall -HUP rdisc || rdisc -fs
+ if [ "$OCF_RESKEY_disable_rdisc" != "yes" ] && \
+ [ "$OCF_RESKEY_disable_rdisc" != "1" ]; then
+ killall -HUP rdisc || rdisc -fs
+ fi
fi
return 0