Closes #15513: Add bulk creation support for IP prefixes #151

Closed
opened 2026-04-05 16:22:19 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @pheus on 3/13/2026

Fixes: #15513

This PR adds bulk creation support for IP prefixes using network patterns for both IPv4 and IPv6.

To keep the implementation reusable, the bulk-create flow has been cleaned up to share context and templates across IP network objects. As part of that, IPAddressBulkCreateForm has been renamed to IPNetworkBulkCreateForm to better reflect its broader use.

It also adds HTMX partial rendering for the bulk-add form so dependent fields update correctly when scope_type changes. PrefixBulkAddForm now inherits from PrefixForm, which restores the expected scope and VLAN behavior in the bulk-create UI.

*Originally created by @pheus on 3/13/2026* ### Fixes: #15513 This PR adds bulk creation support for IP prefixes using network patterns for both IPv4 and IPv6. To keep the implementation reusable, the bulk-create flow has been cleaned up to share context and templates across IP network objects. As part of that, `IPAddressBulkCreateForm` has been renamed to `IPNetworkBulkCreateForm` to better reflect its broader use. It also adds HTMX partial rendering for the bulk-add form so dependent fields update correctly when `scope_type` changes. `PrefixBulkAddForm` now inherits from `PrefixForm`, which restores the expected scope and VLAN behavior in the bulk-create UI.
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/netbox#151