- 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]>
NetBox 4.7.2 ships Django 6.1, which deprecates select_related() without arguments (an error in Django 7). Only call it when the model has foreign keys; behaviour is unchanged. Verified with NetBox 4.7.2. Bump version to 0.3.14, the version Netbox-Utilities already expects for its rack width integration.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Raise max_version to 4.7.99 and update README references from
NetBox 4.6.x-only to 4.6.x/4.7.x. No plugin API usage requires
changes for 4.7 compatibility (PluginConfig, PluginMenuItem,
get_plugin_config remain stable); full pytest suite passes.
Co-Authored-By: Claude Sonnet 5 <[email protected]>