refactor: Added IOS-XR Bundle-Ether shortened/corrected forms (#7283)

* Added IOS-XR Bundle-Ether shortened/corrected forms
This commit is contained in:
deepseth
2017-09-01 17:14:03 +01:00
committed by Neil Lathwood
parent 4c3562ea0f
commit 2cbee2dc02
2 changed files with 4 additions and 0 deletions

View File

@@ -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
);

View File

@@ -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);