summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorBob Gilligan <gilligan@vyatta.com>2011-11-28 18:05:29 -0800
committerBob Gilligan <gilligan@vyatta.com>2011-11-28 18:05:29 -0800
commitcff545a528c168f0b39a5b457b1f2a298649389d (patch)
tree411cdda686d402a57c1bb52ff26a42630296450b /scripts
parent7101027a6a9a10ef26383bb39a452aeaa3526629 (diff)
downloadvyatta-cfg-system-cff545a528c168f0b39a5b457b1f2a298649389d.tar.gz
vyatta-cfg-system-cff545a528c168f0b39a5b457b1f2a298649389d.zip
Display vmac interface name in "show vrrp interfaces ..." command
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/keepalived/vyatta-show-vrrp.pl6
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/keepalived/vyatta-show-vrrp.pl b/scripts/keepalived/vyatta-show-vrrp.pl
index 28a9970c..68a98390 100755
--- a/scripts/keepalived/vyatta-show-vrrp.pl
+++ b/scripts/keepalived/vyatta-show-vrrp.pl
@@ -188,6 +188,7 @@ sub vrrp_showsummary {
my ($interface_state, $link) = get_state_link($intf);
if ($state eq "master" || $state eq "backup" || $state eq "fault") {
my ($primary_addr, $priority, $preempt, $advert_int, $auth_type,
+ $vmac_interface,
@vips) = Vyatta::Keepalived::vrrp_get_config($intf, $group);
my $format = "\n%-16s%-8s%-8s%-16s%-16s%-16s";
my $vip = shift @vips;
@@ -210,9 +211,14 @@ sub vrrp_show {
my $first_vip = '';
if ($state eq "master" || $state eq "backup" || $state eq "fault") {
my ($primary_addr, $priority, $preempt, $advert_int, $auth_type,
+ $vmac_interface,
@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";
+ if ($vmac_interface) {
+ my $vma = "$intf" . "v" . "$group";
+ print " Virtual MAC interface: $vma\n";
+ }
print " Interface state: $link, Group $group, State: $state\n";
print " Priority: $priority, Advertisement interval: $advert_int, ";
print "Authentication type: $auth_type\n";