fixed os() for IOS Catalyst devices to report IOS and not CatOS
This commit is contained in:
@@ -77,8 +77,9 @@ sub os {
|
|||||||
my $l2 = shift;
|
my $l2 = shift;
|
||||||
my $descr = $l2->description();
|
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 'ios' if ($descr =~ /IOS/);
|
||||||
|
return 'catalyst' if ($descr =~ /catalyst/i);
|
||||||
return undef;
|
return undef;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user