update the natgw eventscript to set the NATGW capability when this feature is used
authorRonnie Sahlberg <ronniesahlberg@gmail.com>
Tue, 28 Jul 2009 00:00:33 +0000 (10:00 +1000)
committerRonnie Sahlberg <ronniesahlberg@gmail.com>
Tue, 28 Jul 2009 00:00:33 +0000 (10:00 +1000)
This does not modify any behaviour of the daemon itself other than showing this flag as ON in the ctdeb getcapabilities output

(This used to be ctdb commit fb337c151bd16ad5ad0c99431224451979d8c651)

ctdb/config/events.d/11.natgw

index b994308d488221b57cae2e08706966d84603444b..63820561db6a9ebbd14fc34bde0479736268c101 100644 (file)
@@ -33,6 +33,8 @@ case $cmd in
        echo 3 > /proc/sys/net/ipv4/conf/all/arp_ignore
        # do not send out arp requests from loopback addresses
        echo 2 > /proc/sys/net/ipv4/conf/all/arp_announce
+       # update capabilities to show we are using natgw
+       ctdb setnatgwstate on
        ;;
 
      recovered)