feat: import Sophos access points from a Sophos Central CSV export

- New "Access Points" page: load the Sophos Central export, check missing
  sites and duplicate IPs, serial numbers and MAC addresses
- Find existing APs globally by serial number and MAC (chunked queries) and
  by name within the tenant group; list NetBox APs missing in the export
- Map Sophos sites to NetBox sites of the tenant group (suggested by name,
  stored per profile, per-AP choice for APs without site)
- Create or update devices with Sophos device type, role, site, serial,
  firmware, interface, MAC and primary IP; tenant from the site or the chosen
  tenant, devices of other tenants are never changed; preview before writing

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
MrBlakeandClaude Opus 5.5 committed 2026-10-30 16:50:11 +01:00
1 parent 8f20bcf795
commit 9ce25d820a
8 files changed
+924 -4

No files matched your search

+17 -1
View File
@@ -21,7 +21,7 @@ vSphere and Proxmox VE, HPE/Aruba switches and Windows clients in NetBox.
- Light and dark theme (optionally following Windows)
- Log with filter, search and export, plus a rotating log file under
`%APPDATA%\NetBox VM Import\logs`
- Keyboard shortcuts: `Ctrl+1…9` navigation, `F5` reload/read, `Ctrl+F` search
- Keyboard shortcuts: `Ctrl+1…8` navigation, `Ctrl+9` settings, `F5` reload/read, `Ctrl+F` search
- Updates from the Gitea releases: checked on start (can be switched off in the
settings, or run on demand); after confirmation the installed version runs the
new setup silently and the portable EXE replaces itself, then the application
@@ -86,6 +86,22 @@ vSphere and Proxmox VE, HPE/Aruba switches and Windows clients in NetBox.
- The switch configuration is only changed when "Enable LLDP if needed" is
explicitly switched on
### Sophos access points (CSV from Sophos Central)
- Loads the access point export of Sophos Central (comma or semicolon, UTF-8 or
Windows encoding) and checks it: missing site, duplicate IP, serial number or
MAC address
- Finds existing APs in NetBox globally by serial number and MAC address and by
name within the tenant group; NetBox APs of the tenant group that are missing
in the export are listed as "only in NetBox"
- Sophos sites are mapped to NetBox sites of the tenant group (suggested by
name, stored per profile); APs without a Sophos site get a site per AP
- New APs are created with Sophos device type, role, site, serial number,
firmware, interface with MAC and IP address (primary IPv4); existing ones get
missing serial numbers and tenants, optionally the Sophos name. Tenant comes
from the NetBox site, otherwise the selected tenant; devices of other tenants
are never changed. Preview before writing
### Network scanner (read only)
- Scans IP ranges, networks and host names (`192.0.2.1-254`, `192.0.2.0/24`,