towerops/test/towerops/snmp
Graham McIntie 3d5c74e7ae fix: correct AirFiber proprietary OID mapping and v1-only device support (#170)
Root cause: AF11X devices only support SNMPv1, IF-MIB eth0 counters
return zero, and air0 32-bit counters wrap too fast for backhaul speeds.

Fixes:
- Use correct UBNT-AirFIBER-MIB OID indices from MIB SEQUENCE definition:
  .7.1 = rxOctetsOK (inbound), .6.1 = txOctetsOK (outbound)
  .10.1 = rxErroredFrames, .11.1 = txErroredFrames
- Detect AirFiber devices by sysDescr instead of SNMP probing (v1 devices
  cannot return Counter64 via standard probe queries)
- Force SNMPv1 for AirFiber proprietary queries
- Apply proprietary counters to all real interfaces (not just eth0)

Verified against live AF11X at 10.250.1.90:
- IF-MIB eth0 returns zero counters
- Proprietary .6.1/.7.1 show real traffic (3.75TB rx / 43TB tx)

Reviewed-on: graham/towerops-web#170
2026-03-25 15:02:45 -05:00
..
adapters fix: agent discovery and polling accuracy improvements 2026-02-11 15:58:31 -06:00
profiles fix: correct AirFiber proprietary OID mapping and v1-only device support (#170) 2026-03-25 15:02:45 -05:00
arp_discovery_test.exs arp 2026-01-23 08:40:57 -06:00
batch_insert_test.exs Add GeoIP import HTTP tests 2026-03-10 16:02:49 -05:00
client_test.exs moar tests 2026-01-06 15:43:54 -06:00
deferred_discovery_test.exs perf(tests): aggressive timeout and delay reductions 2026-03-06 08:28:18 -06:00
discovery_test.exs make devices site optional and many test fix 2026-02-04 15:05:42 -06:00
ip_address_test.exs make devices site optional and many test fix 2026-02-04 15:05:42 -06:00
mac_address_test.exs make devices site optional and many test fix 2026-02-04 15:05:42 -06:00
mac_discovery_test.exs mac discovery 2026-01-23 09:22:08 -06:00
memory_pool_test.exs make devices site optional and many test fix 2026-02-04 15:05:42 -06:00
mib_parser_test.exs more tests 2026-01-20 16:38:53 -06:00
mib_translator_test.exs Merge remote-tracking branch 'origin/main' into feature/preseem-integration 2026-02-13 09:11:45 -06:00
mib_validation_test.exs add MIB-based validation and generic profile tests 2026-01-08 08:57:21 -06:00
neighbor_cleanup_worker_test.exs make devices site optional and many test fix 2026-02-04 15:05:42 -06:00
neighbor_discovery_test.exs fix/critical-logic-and-memory-bugs (#159) 2026-03-25 09:50:21 -05:00
neighbor_test.exs make devices site optional and many test fix 2026-02-04 15:05:42 -06:00
physical_entity_test.exs make devices site optional and many test fix 2026-02-04 15:05:42 -06:00
poller_test.exs perf(tests): remove/reduce Process.sleep calls for faster tests 2026-03-06 07:57:30 -06:00
processor_reading_test.exs make devices site optional and many test fix 2026-02-04 15:05:42 -06:00
processor_test.exs sanitize snmp data and fix some cpu things 2026-01-22 16:53:01 -06:00
sanitizer_test.exs sanitize snmp data and fix some cpu things 2026-01-22 16:53:01 -06:00
sensor_change_detector_test.exs fix: display count sensor values as integers instead of floats 2026-03-06 15:03:30 -06:00
state_sensor_test.exs make devices site optional and many test fix 2026-02-04 15:05:42 -06:00
storage_test.exs make devices site optional and many test fix 2026-02-04 15:05:42 -06:00
vlan_test.exs make devices site optional and many test fix 2026-02-04 15:05:42 -06:00