- Use conditional unique constraints as import identity only when the
record matches the condition, and filter target candidates by it.
Replaced disks no longer overwrite active disks in the same slot.
- Export disk bay templates together with their device type dependency.
- Skip records of the optional NetBox Utilities plugin with a warning
when it is not installed on the target instead of aborting the import.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
IPRange.save() computes its size from start_address.ip, but the importer assigned the archived addresses as plain strings, so every archive containing IP ranges failed with "'str' object has no attribute 'ip'". Convert values of NetBox IP fields with the field's to_python(). This also affects NetBox 4.6.
IP ranges also had no natural key, so importing into an instance that already contained the range created a duplicate. Match them by (vrf, start_address, end_address).
Verified with a real export and repeated imports on NetBox 4.7.2; the version stays 0.3.14 because Netbox-Utilities only enables its integration for known versions.
Co-Authored-By: Claude Opus 5.5 <[email protected]>