summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Southworth <john.southworth@vyatta.com>2011-12-05 11:56:17 -0800
committerJohn Southworth <john.southworth@vyatta.com>2011-12-05 11:56:17 -0800
commitacb1cb8976fb92893e399c1bf2f7a78e73a5eb8b (patch)
treed0ec7e4ccd782c59285aae431a23bdeeb0848e74
parent94bf99b056a4e2a83994e2b803d7140c972f2d11 (diff)
downloadvyatta-cfg-quagga-acb1cb8976fb92893e399c1bf2f7a78e73a5eb8b.tar.gz
vyatta-cfg-quagga-acb1cb8976fb92893e399c1bf2f7a78e73a5eb8b.zip
make vyatta-interfaces.pl aware of vrrp interfaces
-rwxr-xr-xscripts/vyatta-interfaces.pl5
1 files 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());