fixed os() for IOS Catalyst devices to report IOS and not CatOS

This commit is contained in:
Max Baker
2003-08-04 21:49:14 +00:00
parent dfff2624ac
commit c2fd3bd3a4

View File

@@ -77,8 +77,9 @@ sub os {
my $l2 = shift;
my $descr = $l2->description();
return 'catalyst' if ($descr =~ /catalyst/i);
# order here matters - there are Catalysts that run IOS and have catalyst in their description field.
return 'ios' if ($descr =~ /IOS/);
return 'catalyst' if ($descr =~ /catalyst/i);
return undef;
}