add hce snmp sync support for 25G ports
authorVladimir Sukhonosov <xornet@yandex-team.ru>
Thu, 2 Aug 2018 17:06:24 +0000 (20:06 +0300)
committerVladimir Sukhonosov <xornet@yandex-team.ru>
Fri, 3 Aug 2018 12:37:25 +0000 (15:37 +0300)
wwwroot/inc/snmp.php

index 21a4609..a80701a 100644 (file)
@@ -1401,6 +1401,15 @@ $iftable_processors['hce-any-SFP'] = array
        'try_next_proc' => FALSE,
 );
 
+$iftable_processors['hce-any-SFP28'] = array
+(
+       'pattern' => '@^25GE([[:digit:]]+/[[:digit:]]+/)([[:digit:]]+)$@',
+       'replacement' => '25ge\\1\\2',
+       'dict_key' => '16-1592',
+       'label' => '\\2',
+       'try_next_proc' => FALSE,
+);
+
 $iftable_processors['hce-any-QSFP-split'] = array
 (
        'pattern' => '@^40GE([[:digit:]]+/[[:digit:]]+/)([[:digit:]]+):([[:digit:]]+)$@',
@@ -1419,12 +1428,11 @@ $iftable_processors['hce-any-QSFP'] = array
        'try_next_proc' => FALSE,
 );
 
-// FIXME: use SFP28:25GbE instead of SFP+:10GbE
 $iftable_processors['hce-any-QSFP28-split'] = array
 (
        'pattern' => '@^100GE([[:digit:]]+/[[:digit:]]+/)([[:digit:]]+):([[:digit:]]+)$@',
        'replacement' => '100ge\\1\\2:\\3',
-       'dict_key' => '9-1084',
+       'dict_key' => '16-1592',
        'label' => '\\2:\\3',
        'try_next_proc' => FALSE,
 );