From c2fd3bd3a4abbce7f7ab7677f45bfa3a561a80e6 Mon Sep 17 00:00:00 2001 From: Max Baker <> Date: Mon, 4 Aug 2003 21:49:14 +0000 Subject: [PATCH] fixed os() for IOS Catalyst devices to report IOS and not CatOS --- Info/CiscoStats.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Info/CiscoStats.pm b/Info/CiscoStats.pm index 771a8fd4..60b326a1 100644 --- a/Info/CiscoStats.pm +++ b/Info/CiscoStats.pm @@ -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; }