Fix typo and reorder string replacements

This commit is contained in:
Mike Rostermund
2015-06-18 15:45:30 +02:00
parent a112a1bc01
commit ec79e31827

View File

@@ -763,8 +763,8 @@ function get_client_ip() {
function shorten_interface_type($string) {
return str_ireplace(
array('FastEthernet','GigbitEthernet','TenGigabitEthernet','Port-Channel','Ethernet'),
array('Fa','Gi','Te','Po','Eth'),
array('FastEthernet','TenGigabitEthernet','GigabitEthernet','Port-Channel','Ethernet'),
array('Fa','Te','Gi','Po','Eth'),
$string
);
}