diff options
author | An-Cheng Huang <ancheng@vyatta.com> | 2008-04-25 15:54:14 -0700 |
---|---|---|
committer | An-Cheng Huang <ancheng@vyatta.com> | 2008-04-25 15:54:14 -0700 |
commit | 14cbebe672f2fa690ac66a332c407d1aeec757fe (patch) | |
tree | bfddef31be75fab2a16908d7bca14e4f96786e3f /scripts | |
parent | 28eaf3b1608f678e70eab8b7ad0887ccc0c5c5eb (diff) | |
download | vyatta-cluster-14cbebe672f2fa690ac66a332c407d1aeec757fe.tar.gz vyatta-cluster-14cbebe672f2fa690ac66a332c407d1aeec757fe.zip |
remove calls to watchlink exclude scripts.
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/VyattaClusterConfig.pm | 31 | ||||
-rwxr-xr-x | scripts/vyatta-update-cluster.pl | 5 |
2 files changed, 0 insertions, 36 deletions
diff --git a/scripts/VyattaClusterConfig.pm b/scripts/VyattaClusterConfig.pm index ab5b536..01979dc 100644 --- a/scripts/VyattaClusterConfig.pm +++ b/scripts/VyattaClusterConfig.pm @@ -348,37 +348,6 @@ EOS return ($str, undef, @init_services); } -sub del_watchlink_exclude { - my $self = shift; - my $cmd = '/opt/vyatta/sbin/vyatta-watchlink-exclude.pl ' - . "--id=$HA_WATCHLINK_ID --action=remove >&/dev/null"; - system($cmd); -} - -sub add_watchlink_exclude { - my $self = shift; - my $bcmd = '/opt/vyatta/sbin/vyatta-watchlink-exclude.pl ' - . "--id=$HA_WATCHLINK_ID --action=add --intf='*'"; - my @groups = keys %{$self->{_groups}}; - my $hashref = $self->{_groups}->{$groups[0]}; - my @ip_addresses = (); - foreach (@{$hashref->{_service}}) { - if (isValidIPSpec($_)) { - my $ip = (/^([^\/]+)\//) ? $1 : $_; - push @ip_addresses, $ip; - } - } - return if (scalar(@ip_addresses) <= 0); - - my $last_ip = pop @ip_addresses; - foreach (@ip_addresses) { - my $cmd = "$bcmd --ipadd=$_"; - system($cmd); - } - my $cmd = "$bcmd --ipadd=$last_ip --signal"; - system($cmd); -} - sub print_str { my ($self) = @_; my $str = "cluster"; diff --git a/scripts/vyatta-update-cluster.pl b/scripts/vyatta-update-cluster.pl index 5dcdc47..dbe4b74 100755 --- a/scripts/vyatta-update-cluster.pl +++ b/scripts/vyatta-update-cluster.pl @@ -15,8 +15,6 @@ if ($config->isEmpty()) { # shutdown clustering. system("$HA_INIT stop"); - $config->del_watchlink_exclude(); - exit 0; } @@ -68,9 +66,6 @@ if (!chmod(0600, "$HA_DIR/authkeys")) { exit 1; } -$config->del_watchlink_exclude(); -$config->add_watchlink_exclude(); - # stop each service in case it is already started foreach (@init_services) { system("$SERVICE_DIR/$_ stop"); |