Shorten interface names on map

This commit is contained in:
laf
2015-04-08 02:46:03 +01:00
parent 2f5be1bab4
commit bc285af35d
3 changed files with 11 additions and 11 deletions

View File

@@ -737,4 +737,13 @@ function get_client_ip() {
return $client_ip;
}
function shorten_interface_type($string) {
return str_ireplace(
array('FastEthernet','GigbitEthernet','TenGigabitEthernet','Port-Channel','Ethernet'),
array('Fa','Gi','Te','Po','Eth'),
$string
);
}
?>