diff options
author | rbalocca <rbalocca@vyatta.com> | 2008-04-26 10:58:55 -0700 |
---|---|---|
committer | rbalocca <rbalocca@vyatta.com> | 2008-04-26 10:58:55 -0700 |
commit | 70d0b003af0267312c77495ce7363b571dfcc965 (patch) | |
tree | 72946208dd3ccf0ac3431fa488f27d2bb56fdeb8 | |
parent | 7cbf6e4fc731a59db2f65bd5893f20f5c8e23582 (diff) | |
parent | 14cbebe672f2fa690ac66a332c407d1aeec757fe (diff) | |
download | vyatta-cluster-70d0b003af0267312c77495ce7363b571dfcc965.tar.gz vyatta-cluster-70d0b003af0267312c77495ce7363b571dfcc965.zip |
Merge branch 'glendale' into hollywood
-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"); |