summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorStig Thormodsrud <stig@io.vyatta.com>2009-03-05 14:56:30 -0800
committerStig Thormodsrud <stig@io.vyatta.com>2009-03-05 14:56:30 -0800
commit1e6a342f2b527a01d0952909af0458c4d8db3b3c (patch)
tree38f6c76bfb72ef44396bb052e4cda7417fc09f26 /scripts
parent45a5466e2225494d237243689f666eb34d85d34e (diff)
downloadvyatta-cfg-1e6a342f2b527a01d0952909af0458c4d8db3b3c.tar.gz
vyatta-cfg-1e6a342f2b527a01d0952909af0458c4d8db3b3c.zip
Fix is_valid_name() to support any valid interface type (--check all).
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/vyatta-interfaces.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/vyatta-interfaces.pl b/scripts/vyatta-interfaces.pl
index d26c0e4..4820ae3 100755
--- a/scripts/vyatta-interfaces.pl
+++ b/scripts/vyatta-interfaces.pl
@@ -444,7 +444,7 @@ sub is_valid_name {
die "$name does not match any known interface name type\n"
unless $intf;
die "$name is a ", $intf->type(), " interface not an $type interface\n"
- if ($intf->type() ne $type);
+ if ($type ne 'all' and $intf->type() ne $type);
die "$type interface $name does not exist on system\n"
unless grep { $name eq $_ } getInterfaces();
exit 0;