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',
|
'GigabitEthernet',
|
||||||
'Port-Channel',
|
'Port-Channel',
|
||||||
'Ethernet',
|
'Ethernet',
|
||||||
|
'Bundle-Ether',
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
'Fa',
|
'Fa',
|
||||||
@@ -1058,6 +1059,7 @@ function shorten_interface_type($string)
|
|||||||
'Gi',
|
'Gi',
|
||||||
'Po',
|
'Po',
|
||||||
'Eth',
|
'Eth',
|
||||||
|
'BE',
|
||||||
),
|
),
|
||||||
$string
|
$string
|
||||||
);
|
);
|
||||||
|
@@ -183,6 +183,7 @@ function makeshortif($if)
|
|||||||
'tunnel' => 'Tunnel',
|
'tunnel' => 'Tunnel',
|
||||||
'serviceinstance' => 'SI',
|
'serviceinstance' => 'SI',
|
||||||
'dwdm' => 'DWDM',
|
'dwdm' => 'DWDM',
|
||||||
|
'bundle-ether' => 'BE',
|
||||||
);
|
);
|
||||||
|
|
||||||
$if = fixifName($if);
|
$if = fixifName($if);
|
||||||
@@ -1004,6 +1005,7 @@ function fixifName($inf)
|
|||||||
'hp procurve switch software loopback interface' => 'Loopback Interface',
|
'hp procurve switch software loopback interface' => 'Loopback Interface',
|
||||||
'control plane interface' => 'Control Plane',
|
'control plane interface' => 'Control Plane',
|
||||||
'loop' => 'Loop',
|
'loop' => 'Loop',
|
||||||
|
'bundle-ether' => 'Bundle-Ether',
|
||||||
);
|
);
|
||||||
|
|
||||||
$inf = strtolower($inf);
|
$inf = strtolower($inf);
|
||||||
|
Reference in New Issue
Block a user