Roman Dmitriev 2 anni fa
parent
commit
3cea25fa2a
1 ha cambiato i file con 7 aggiunte e 7 eliminazioni
  1. 7 7
      html/inc/common.php

+ 7 - 7
html/inc/common.php

@@ -2356,6 +2356,13 @@ function get_port_poe_detail($vendor_id, $port, $port_snmp_index, $ip, $communit
         $poe_volt = ELTEX_POE_VOLT . '.' . $port_snmp_index;
     }
 
+    // huawei
+    if ($vendor_id == 3) {
+        $poe_power = HUAWEI_POE_USAGE . '.' . $port_snmp_index;
+        $poe_current = HUAWEI_POE_CURRENT .'.' . $port_snmp_index;
+        $poe_volt = HUAWEI_POE_VOLT . '.' . $port_snmp_index;
+    }
+
     // snr
     if ($vendor_id == 6) {
         $poe_class = SNR_POE_CLASS . '.' . $port_snmp_index;
@@ -2364,13 +2371,6 @@ function get_port_poe_detail($vendor_id, $port, $port_snmp_index, $ip, $communit
         $poe_volt = SNR_POE_VOLT . '.' . $port_snmp_index;
     }
 
-    // huawei
-    if ($vendor_id == 3) {
-        $poe_power = HUAWEI_POE_USAGE . '.' . $port_snmp_index;
-        $poe_current = HUAWEI_POE_CURRENT .'.' . $port_snmp_index;
-        $poe_volt = HUAWEI_POE_VOLT . '.' . $port_snmp_index;
-    }
-
     // AT
     if ($vendor_id == 8) {
         $poe_power = ALLIED_POE_USAGE . '.' . $port_snmp_index;