From 32255a829fbc1c027daa1804c909c051aa2e3daa Mon Sep 17 00:00:00 2001 From: Geert Hauwaerts Date: Sun, 21 Feb 2010 21:05:58 +0000 Subject: [PATCH] - Device hardware rewrite addon (Ex "CISCO1841" to "Cisco 1841") git-svn-id: http://www.observium.org/svn/observer/trunk@930 61d68cd4-352d-0410-923a-c4978735b2b8 --- includes/functions.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/includes/functions.php b/includes/functions.php index af51deb9c..fdf950159 100755 --- a/includes/functions.php +++ b/includes/functions.php @@ -848,6 +848,8 @@ function formatCiscoHardware(&$device, $short = false) } else { $device['hardware'] = "Cisco " . $matches[1]; } + } elseif (preg_match("/^CISCO([0-9]+)$/", $device['hardware'], $matches)) { + $device['hardware'] = "Cisco " . $matches[1]; } } else { if (preg_match("/Cisco IOS Software, C([A-Za-z0-9]+) Software.*/", $device['sysDescr'], $matches)) {