fix: Comware dBm Limits && Comware Sensor Descr (#7216)

This commit is contained in:
Søren Rosiak
2017-08-24 22:08:42 +02:00
committed by Tony Murray
parent e0d3083791
commit 701813f3ad
5 changed files with 38 additions and 37 deletions

View File

@@ -166,22 +166,23 @@ function translate_ifAdminStatus($ifAdminStatus)
function makeshortif($if)
{
$rewrite_shortif = array(
'tengigabitethernet' => 'Te',
'tengige' => 'Te',
'gigabitethernet' => 'Gi',
'fastethernet' => 'Fa',
'ethernet' => 'Et',
'serial' => 'Se',
'pos' => 'Pos',
'port-channel' => 'Po',
'atm' => 'Atm',
'null' => 'Null',
'loopback' => 'Lo',
'dialer' => 'Di',
'vlan' => 'Vlan',
'tunnel' => 'Tunnel',
'serviceinstance' => 'SI',
'dwdm' => 'DWDM',
'tengigabitethernet' => 'Te',
'ten-gigabitethernet' => 'Te',
'tengige' => 'Te',
'gigabitethernet' => 'Gi',
'fastethernet' => 'Fa',
'ethernet' => 'Et',
'serial' => 'Se',
'pos' => 'Pos',
'port-channel' => 'Po',
'atm' => 'Atm',
'null' => 'Null',
'loopback' => 'Lo',
'dialer' => 'Di',
'vlan' => 'Vlan',
'tunnel' => 'Tunnel',
'serviceinstance' => 'SI',
'dwdm' => 'DWDM',
);
$if = fixifName($if);