git.samba.org
/
metze
/
ctdb
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9ade366
)
Fix a bug where we failed to remove the natgw address from loopback properly
author
Ronnie Sahlberg
<ronniesahlberg@gmail.com>
Wed, 19 May 2010 03:23:43 +0000
(13:23 +1000)
committer
Ronnie Sahlberg
<ronniesahlberg@gmail.com>
Wed, 19 May 2010 03:23:43 +0000
(13:23 +1000)
bz58317
config/events.d/11.natgw
patch
|
blob
|
history
diff --git
a/config/events.d/11.natgw
b/config/events.d/11.natgw
index 3c2836ba34aa3d151d0e44a96514a62048f800ec..ae56f23100cb7ab2ca44b1c60d0ff33b61e06a9c 100644
(file)
--- a/
config/events.d/11.natgw
+++ b/
config/events.d/11.natgw
@@
-11,6
+11,8
@@
loadconfig
[ -z "$CTDB_NATGW_PUBLIC_IFACE" ] && exit 0
delete_all() {
+ CTDB_NATGW_PUBLIC_IP_HOST=`echo $CTDB_NATGW_PUBLIC_IP | sed -e "s/\/.*/\/32/"`
+
remove_ip $CTDB_NATGW_PUBLIC_IP $CTDB_NATGW_PUBLIC_IFACE
remove_ip $CTDB_NATGW_PUBLIC_IP_HOST lo