diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2009-01-18 14:29:08 -0800 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2009-01-18 14:29:08 -0800 |
commit | c28287fcf5ba523a46f86ec84c6dd648d2fcbe73 (patch) | |
tree | 8199d650e1843660365a94ec9dcd41edef0c3385 /lib/Vyatta | |
parent | 65e8ffeee220fe3e2feb7724ccca6bbd2e824e4b (diff) | |
download | vyatta-cfg-c28287fcf5ba523a46f86ec84c6dd648d2fcbe73.tar.gz vyatta-cfg-c28287fcf5ba523a46f86ec84c6dd648d2fcbe73.zip |
Fix regression in Vyatta::Misc
Handle requests for interfaces of a specific type
Diffstat (limited to 'lib/Vyatta')
-rwxr-xr-x | lib/Vyatta/Misc.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Vyatta/Misc.pm b/lib/Vyatta/Misc.pm index dc8b89e..3d0f7b2 100755 --- a/lib/Vyatta/Misc.pm +++ b/lib/Vyatta/Misc.pm @@ -117,7 +117,8 @@ sub getInterfacesIPadresses { if ($type ne 'all') { $mask = $type_hash{$type}; - die "Invalid type specified to retreive IP addresses for: $type"; + die "Invalid type specified to retreive IP addresses for: $type" + unless $mask; } foreach my $name (getInterfaces()) { |