mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
refactor: Added IOS-XR Bundle-Ether shortened/corrected forms (#7283)
* Added IOS-XR Bundle-Ether shortened/corrected forms
This commit is contained in:
@@ -1051,6 +1051,7 @@ function shorten_interface_type($string)
|
||||
'GigabitEthernet',
|
||||
'Port-Channel',
|
||||
'Ethernet',
|
||||
'Bundle-Ether',
|
||||
),
|
||||
array(
|
||||
'Fa',
|
||||
@@ -1058,6 +1059,7 @@ function shorten_interface_type($string)
|
||||
'Gi',
|
||||
'Po',
|
||||
'Eth',
|
||||
'BE',
|
||||
),
|
||||
$string
|
||||
);
|
||||
|
@@ -183,6 +183,7 @@ function makeshortif($if)
|
||||
'tunnel' => 'Tunnel',
|
||||
'serviceinstance' => 'SI',
|
||||
'dwdm' => 'DWDM',
|
||||
'bundle-ether' => 'BE',
|
||||
);
|
||||
|
||||
$if = fixifName($if);
|
||||
@@ -1004,6 +1005,7 @@ function fixifName($inf)
|
||||
'hp procurve switch software loopback interface' => 'Loopback Interface',
|
||||
'control plane interface' => 'Control Plane',
|
||||
'loop' => 'Loop',
|
||||
'bundle-ether' => 'Bundle-Ether',
|
||||
);
|
||||
|
||||
$inf = strtolower($inf);
|
||||
|
Reference in New Issue
Block a user