mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-12 16:06:25 +02: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 {
|
} else {
|
||||||
$device['hardware'] = "Cisco " . $matches[1];
|
$device['hardware'] = "Cisco " . $matches[1];
|
||||||
}
|
}
|
||||||
|
} elseif (preg_match("/^CISCO([0-9]+)$/", $device['hardware'], $matches)) {
|
||||||
|
$device['hardware'] = "Cisco " . $matches[1];
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (preg_match("/Cisco IOS Software, C([A-Za-z0-9]+) Software.*/", $device['sysDescr'], $matches)) {
|
if (preg_match("/Cisco IOS Software, C([A-Za-z0-9]+) Software.*/", $device['sysDescr'], $matches)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user