Closes #17598: Add bulk creation for VLANs#22377
Conversation
|
@claude /review Only report on issues of potential concern; we don't need commentary on anything that doesn't require further consideration. |
|
Claude finished @pheus's task in 3m 33s —— View job PR Review: Bulk VLAN Creation
Issues of Concern1. Misleading test:
|
41df9d7 to
29acf82
Compare
|
@claude /review Point 1, 2 and 4 are addressed. For the batch-size concern, I agree it’s worth considering, but I’m inclined not to add a hard limit in this PR unless review prefer one. The possible VLAN range is bounded by 1-4094, and adding a generic limit to |
|
Claude finished @pheus's task in 1m 37s —— View job PR Review: Bulk VLAN Creation (Re-review)
All three previously flagged issues are addressed: Point 1 — Test renamed and pattern made unambiguous ( Point 2 — Point 4 — Point 3 — Batch size: The argument against a hard limit is sound for this PR. VIDs are spec-bounded to 1–4094, so the worst-case batch is 4093 objects — large but finite and known. Introducing One minor observation worth noting: No blocking issues. The PR looks good to merge from a code-quality standpoint. |
Implements bulk VLAN creation with pattern-based VID generation and
template field support. Users can specify VLAN ID ranges
(e.g., 100,200-210) and use {vid} placeholders in fields like name.
Fixes #17598
29acf82 to
cee5263
Compare
Closes: #17598
This adds bulk VLAN creation using NetBox’s existing bulk-create pattern.
Users can now create multiple VLANs from a comma-separated list or range of VLAN IDs, for example
100,200-210,3100-3299. The VLAN name field also supports a{vid}placeholder, allowing generated names such asCustomer-3100,Customer-3101, and so on.The implementation keeps the single VLAN create form unchanged and reuses the generic
BulkCreateViewflow, with a small generic extension for applying generated pattern values to additional form fields.