Fixed two profile import issues: 1. Skip sensors without OIDs: - Some profiles have sensors with null/missing OID fields - These can't be used for SNMP polling anyway - Added check to skip importing sensors without oid or num_oid - Prevents Ecto.Changeset validation errors 2. Truncate MIB values to 255 characters: - ERROR 22001 (string_data_right_truncation) - MIB field is varchar(255) but some values exceed this - Added truncation to first 255 chars before saving - Location: lib/towerops/device_profiles/importer.ex:229-236 Both errors were causing profile imports to fail with crashes. |
||
|---|---|---|
| .. | ||
| mix/tasks | ||
| towerops | ||
| towerops_web | ||
| towerops.ex | ||
| towerops_web.ex | ||