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', '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
); );

View File

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