mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
- 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:
@ -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)) {
|
||||
|
Reference in New Issue
Block a user