From 1acb297337d1a011d2daad7c15bd0368b02fc083 Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Tue, 25 Jan 2011 11:28:35 +1000 Subject: Pass interface name correctly when deleting dhcpv6 Bug 6726 Typo in vyatta-address script conversion from perl to shell (cherry picked from commit 4a319dd3a0aa95a92067fa677ad2e5d94534044b) --- scripts/vyatta-address | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/vyatta-address b/scripts/vyatta-address index 2e521c26..94fb1c59 100755 --- a/scripts/vyatta-address +++ b/scripts/vyatta-address @@ -32,7 +32,7 @@ case $1 in exec /opt/vyatta/sbin/vyatta-interfaces.pl --dev="$2" --dhcp=stop elif [[ "$3" = "dhcpv6" ]] then - exec /opt/vyatta/sbin/vyatta-dhcpv6-client.pl --stop --ifname $ifname + exec /opt/vyatta/sbin/vyatta-dhcpv6-client.pl --stop --ifname "$2" elif [[ "$3" =~ ":" ]] then exec ip -6 addr del "$3" dev "$2" -- cgit v1.2.3 From 836ce18ba2ecb403cb12b2ea2e1e83403994d833 Mon Sep 17 00:00:00 2001 From: Stig Thormodsrud Date: Mon, 24 Jan 2011 20:03:02 -0800 Subject: Fix 6501: "clear vrrp master interface group " doesnt work with sync groups. (cherry picked from commit 34972b97e834d66147e91c071a1c1caabe18f76f) --- scripts/keepalived/vyatta-clear-vrrp.pl | 32 +++++++++++++++++++++++++------- 1 file changed, 25 insertions(+), 7 deletions(-) diff --git a/scripts/keepalived/vyatta-clear-vrrp.pl b/scripts/keepalived/vyatta-clear-vrrp.pl index cdc74cf5..34c0327e 100755 --- a/scripts/keepalived/vyatta-clear-vrrp.pl +++ b/scripts/keepalived/vyatta-clear-vrrp.pl @@ -241,12 +241,31 @@ if ($action eq 'clear_master') { my $conf = <$f>; close $f; - my ($new_conf, $match_instance) = vrrp_extract_instance($conf, $instance); - if ($match_instance !~ /nopreempt/) { - print "Warning: $instance is in preempt mode"; - print " and may retake master\n"; + my $sync_group = list_vrrp_sync_group($intf, $group); + my @instances = (); + if (defined($sync_group)) { + print "vrrp group $vrrp_group on $vrrp_intf is in sync-group " + . "$sync_group\n"; + @instances = list_vrrp_sync_group_members($sync_group); + } else { + push @instances, $instance; + } + + my $new_conf = $conf; + my $clear_instances; + foreach my $inst (@instances) { + my $match_instance; + print "Forcing $inst to BACKUP...\n"; + Vyatta::Keepalived::vrrp_log("vrrp extract $inst"); + ($new_conf, $match_instance) = vrrp_extract_instance($new_conf, $inst); + if ($match_instance !~ /nopreempt/) { + print "Warning: $instance is in preempt mode"; + print " and may retake master\n"; + + } + $match_instance = set_instance_inital_state($match_instance, 'BACKUP'); + $clear_instances .= "$match_instance\n"; } - $match_instance = set_instance_inital_state($match_instance, 'BACKUP'); # # need to set the correct initial state for the remaining instances @@ -265,13 +284,12 @@ if ($action eq 'clear_master') { restart_daemon($conf_file); - print "Forcing $vrrp_intf-$group to BACKUP...\n"; sleep(3); # # add modified instance back and restart # - $new_conf .= "\n" . $match_instance . "\n"; + $new_conf .= "\n" . $clear_instances . "\n"; keepalived_write_file($conf_file, $new_conf); Vyatta::Keepalived::restart_daemon($conf_file); -- cgit v1.2.3 From 65381a485162c49ed605e9687bce1882609047b5 Mon Sep 17 00:00:00 2001 From: Stig Thormodsrud Date: Tue, 25 Jan 2011 11:14:34 -0800 Subject: 0.19.33 --- debian/changelog | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/debian/changelog b/debian/changelog index dc649d43..654d1adc 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,18 @@ +vyatta-cfg-system (0.19.33) unstable; urgency=low + + [ Stephen Hemminger ] + * Revert "Add debug logging." + * Add logging to coldplug + * Add more debug output + * Don't fail if config.boot does not exist + * Pass interface name correctly when deleting dhcpv6 + + [ Stig Thormodsrud ] + * Fix 6501: "clear vrrp master interface group " + doesnt work with sync groups. + + -- Stig Thormodsrud Tue, 25 Jan 2011 11:14:33 -0800 + vyatta-cfg-system (0.19.32) unstable; urgency=low [ Stephen Hemminger ] -- cgit v1.2.3