diff options
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; |