Implements a hierarchical SNMP community configuration system where settings can be defined at the organization level (global default), overridden at the site level, or overridden at the equipment level. Changes: - Migration: Add snmp_version and snmp_community to organizations and sites - Organization schema: Add SNMP fields with default version "2c" - Site schema: Add SNMP fields that override organization defaults - Equipment context: Add get_snmp_config/1 with hierarchical fallback logic - Discovery: Use Equipment.get_snmp_config instead of equipment.snmp_community - PollerWorker: Use Equipment.get_snmp_config instead of equipment.snmp_community The fallback order is: 1. Equipment-level (highest priority) 2. Site-level 3. Organization-level (default) All 785 tests passing. |
||
|---|---|---|
| .. | ||
| profiles | ||
| client.ex | ||
| device.ex | ||
| discovery.ex | ||
| interface.ex | ||
| interface_stat.ex | ||
| mib_parser.ex | ||
| neighbor.ex | ||
| neighbor_cleanup_worker.ex | ||
| neighbor_discovery.ex | ||
| poller.ex | ||
| poller_behaviour.ex | ||
| poller_worker.ex | ||
| sensor.ex | ||
| sensor_reading.ex | ||
| snmp_behaviour.ex | ||