mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-27 00:25:06 +02:00
Merge pull request #752 from laf/issue-743
Shorten interface names on map
This commit is contained in:
@@ -264,13 +264,4 @@ function rrdtool_escape($string, $maxlength = NULL)
|
||||
}
|
||||
}
|
||||
|
||||
function shorten_interface_type($string) {
|
||||
|
||||
return str_ireplace(
|
||||
array('FastEthernet','GigbitEthernet','TenGigabitEthernet','Port-Channel','Ethernet'),
|
||||
array('Fa','Gi','Te','Po','Eth'),
|
||||
$string
|
||||
);
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user