diff options
author | Stig Thormodsrud <stig@io.vyatta.com> | 2009-03-05 14:56:30 -0800 |
---|---|---|
committer | Stig Thormodsrud <stig@io.vyatta.com> | 2009-03-05 14:56:30 -0800 |
commit | 1e6a342f2b527a01d0952909af0458c4d8db3b3c (patch) | |
tree | 38f6c76bfb72ef44396bb052e4cda7417fc09f26 /scripts/vyatta-interfaces.pl | |
parent | 45a5466e2225494d237243689f666eb34d85d34e (diff) | |
download | vyatta-cfg-1e6a342f2b527a01d0952909af0458c4d8db3b3c.tar.gz vyatta-cfg-1e6a342f2b527a01d0952909af0458c4d8db3b3c.zip |
Fix is_valid_name() to support any valid interface type (--check all).
Diffstat (limited to 'scripts/vyatta-interfaces.pl')
-rwxr-xr-x | scripts/vyatta-interfaces.pl | 2 |
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; |