diff options
author | Stig Thormodsrud <stig@io.vyatta.com> | 2009-03-01 09:44:30 -0800 |
---|---|---|
committer | Stig Thormodsrud <stig@io.vyatta.com> | 2009-03-01 09:44:30 -0800 |
commit | 449ca5016fb6f42abfecdda7fc906ed81f4d439e (patch) | |
tree | d8fdfe1741e859347f659d5ac5a7472ee4430487 /scripts/keepalived/vyatta-show-vrrp.pl | |
parent | f6c3d454f99f430bfb538ba2008965a0eab97527 (diff) | |
download | vyatta-cfg-quagga-449ca5016fb6f42abfecdda7fc906ed81f4d439e.tar.gz vyatta-cfg-quagga-449ca5016fb6f42abfecdda7fc906ed81f4d439e.zip |
Fix 4152: Add support for VRRP operation on unnumbered interfaces
Diffstat (limited to 'scripts/keepalived/vyatta-show-vrrp.pl')
-rwxr-xr-x | scripts/keepalived/vyatta-show-vrrp.pl | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/keepalived/vyatta-show-vrrp.pl b/scripts/keepalived/vyatta-show-vrrp.pl index 4b8d6fec..0e8e2909 100755 --- a/scripts/keepalived/vyatta-show-vrrp.pl +++ b/scripts/keepalived/vyatta-show-vrrp.pl @@ -178,7 +178,8 @@ 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"; - printf($format, $intf, $group, 'int', $primary_addr, $link, $state); + my $vip = pop @vips; + printf($format, $intf, $group, 'vip', $vip, $link, $state); foreach my $vip (@vips){ printf("\n%-24s%-8s%-16s", ' ', 'vip', $vip); } @@ -198,7 +199,7 @@ sub vrrp_show { if ($state eq "master" || $state eq "backup" || $state eq "fault") { my ($primary_addr, $priority, $preempt, $advert_int, $auth_type, @vips) = Vyatta::Keepalived::vrrp_get_config($intf, $group); - print "Physical interface: $intf, Address $primary_addr\n"; + print "Physical interface: $intf, Source Address $primary_addr\n"; print " Interface state: $link, Group $group, State: $state\n"; print " Priority: $priority, Advertisement interval: $advert_int, "; print "Authentication type: $auth_type\n"; |