- 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
This commit is contained in:
Geert Hauwaerts
2010-02-21 21:05:58 +00:00
parent 6b5a450eca
commit 32255a829f

View File

@ -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)) {