diff options
author | Stig Thormodsrud <stig@vyatta.com> | 2009-11-01 12:43:24 -0800 |
---|---|---|
committer | Stig Thormodsrud <stig@vyatta.com> | 2009-11-01 12:43:24 -0800 |
commit | 68b78c10964589e1d8bff35403e6d9b8e2d7378d (patch) | |
tree | 4723eeb8edb1ad82cb4597b452702037e5a24948 /scripts/keepalived | |
parent | 2fe988d11ef39bab3351fed3e9df341c94c5773d (diff) | |
download | vyatta-cfg-system-68b78c10964589e1d8bff35403e6d9b8e2d7378d.tar.gz vyatta-cfg-system-68b78c10964589e1d8bff35403e6d9b8e2d7378d.zip |
Fix 'show vrrp summary' showing last vip 1st
Diffstat (limited to 'scripts/keepalived')
-rwxr-xr-x | scripts/keepalived/vyatta-show-vrrp.pl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/keepalived/vyatta-show-vrrp.pl b/scripts/keepalived/vyatta-show-vrrp.pl index 545e0e5c..d23d0472 100755 --- a/scripts/keepalived/vyatta-show-vrrp.pl +++ b/scripts/keepalived/vyatta-show-vrrp.pl @@ -188,7 +188,7 @@ sub vrrp_showsummary { my ($primary_addr, $priority, $preempt, $advert_int, $auth_type, @vips) = Vyatta::Keepalived::vrrp_get_config($intf, $group); my $format = "\n%-16s%-8s%-8s%-16s%-16s%-16s"; - my $vip = pop @vips; + my $vip = shift @vips; printf($format, $intf, $group, 'vip', $vip, $link, $state); foreach my $vip (@vips){ printf("\n%-24s%-8s%-16s", ' ', 'vip', $vip); |