From 1e6a342f2b527a01d0952909af0458c4d8db3b3c Mon Sep 17 00:00:00 2001 From: Stig Thormodsrud Date: Thu, 5 Mar 2009 14:56:30 -0800 Subject: Fix is_valid_name() to support any valid interface type (--check all). --- scripts/vyatta-interfaces.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts') 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; -- cgit v1.2.3