Extracted SNMP configuration extraction and connection testing into separate helper functions, reducing cyclomatic complexity from 11 to ~5. - extract_snmp_config/1: Consolidates form data and params - normalize_port/1: Handles port type conversion - test_snmp_connection/1: Performs test and formats result This makes the handle_event callback simpler and each concern easier to test independently. |
||
|---|---|---|
| .. | ||
| towerops | ||
| towerops_web | ||
| towerops.ex | ||
| towerops_web.ex | ||