summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStig Thormodsrud <stig@vyatta.com>2009-11-01 12:43:24 -0800
committerStig Thormodsrud <stig@vyatta.com>2009-11-01 12:43:24 -0800
commit68b78c10964589e1d8bff35403e6d9b8e2d7378d (patch)
tree4723eeb8edb1ad82cb4597b452702037e5a24948
parent2fe988d11ef39bab3351fed3e9df341c94c5773d (diff)
downloadvyatta-cfg-quagga-68b78c10964589e1d8bff35403e6d9b8e2d7378d.tar.gz
vyatta-cfg-quagga-68b78c10964589e1d8bff35403e6d9b8e2d7378d.zip
Fix 'show vrrp summary' showing last vip 1st
-rwxr-xr-xscripts/keepalived/vyatta-show-vrrp.pl2
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);