Ejemplo n.º 1
0
 public Integer getIfIndex() {
   final SnmpValue value = getValue(IF_INDEX);
   if (value != null) {
     return value.toInt();
   } else {
     // ifIndex is the instance id as well
     final SnmpInstId inst = getInstance();
     if (inst != null && inst.length() == 1) {
       return inst.toInt();
     }
   }
   return null;
 }