Add export and import functionality for device SNMP profiles: Export (local): - New mix task: mix export_profiles --librenms-path ~/dev/librenms --output profiles.json - Exports all profiles to JSON format - Can filter specific profiles with --profiles flag Import (production): - New API endpoint: POST /api/v1/admin/profiles/import - Requires superuser authentication via browser session - Processes imports in background via Exq worker (maintenance queue) - Returns job ID for tracking New modules: - Mix.Tasks.ExportProfiles - Export profiles to JSON - ProfileImportWorker - Background job for importing profiles - ProfilesController - API endpoint for bulk import - RequireSuperuser plug - Restricts access to superusers - Importer.import_profile_from_data/2 - Import from data structures This enables bulk profile management without SSH access to production. |
||
|---|---|---|
| .. | ||
| api_auth.ex | ||
| mobile_auth.ex | ||
| require_superuser.ex | ||