From acb1cb8976fb92893e399c1bf2f7a78e73a5eb8b Mon Sep 17 00:00:00 2001 From: John Southworth Date: Mon, 5 Dec 2011 11:56:17 -0800 Subject: make vyatta-interfaces.pl aware of vrrp interfaces --- scripts/vyatta-interfaces.pl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/vyatta-interfaces.pl b/scripts/vyatta-interfaces.pl index c4d04e7a..2b75dba5 100755 --- a/scripts/vyatta-interfaces.pl +++ b/scripts/vyatta-interfaces.pl @@ -400,8 +400,9 @@ sub show_interfaces { next unless $intf; # skip unknown types next if $skip_interface{$name}; next unless ($type eq 'all' || $type eq $intf->type()); - - if ($vif_name) { + if ($intf->vrid()){ + push @match, $name; # add all vrrp interfaces + } elsif ($vif_name) { next unless $intf->vif(); push @match, $intf->vif() if ($vif_name eq $intf->physicalDevice()); -- cgit v1.2.3