summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStig Thormodsrud <stig@vyatta.com>2011-05-18 12:24:49 -0700
committerStig Thormodsrud <stig@vyatta.com>2011-05-18 12:24:49 -0700
commitfd7380af69f97dd1c54623f42ce473c15d09a7a2 (patch)
tree1d1594f6fe004bf58fce5fa59b73ecc662e6982c
parent9f4762a77cdd0abadd40e59481c82a8c0e0e501f (diff)
downloadvyatta-cfg-quagga-fd7380af69f97dd1c54623f42ce473c15d09a7a2.tar.gz
vyatta-cfg-quagga-fd7380af69f97dd1c54623f42ce473c15d09a7a2.zip
Fix 5912: "show vrrp" doesn't list sync-group
-rwxr-xr-xscripts/keepalived/vyatta-show-vrrp.pl2
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/keepalived/vyatta-show-vrrp.pl b/scripts/keepalived/vyatta-show-vrrp.pl
index bcc6ca29..28a9970c 100755
--- a/scripts/keepalived/vyatta-show-vrrp.pl
+++ b/scripts/keepalived/vyatta-show-vrrp.pl
@@ -211,6 +211,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);
+ my $sync = list_vrrp_sync_group($intf, $group);
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, ";
@@ -240,6 +241,7 @@ sub vrrp_show {
}
print ", Master Priority: $master_prio\n";
}
+ print " Sync-group: $sync\n" if defined $sync;
} else {
print "Physical interface $intf, State: unknown\n";
}