Bulk creating IP addresses in ranges greater than 24 bit mask does not work #6592

Closed
opened 2025-12-29 19:42:45 +01:00 by adam · 3 comments
Owner

Originally created by @andy-lawson on GitHub (Jun 24, 2022).

NetBox version

v3.1.9

Python version

3.8

Steps to Reproduce

  1. Click add IP address
  2. Select Bulk Create
  3. Specify range greater than a /24
    E.g. 10.1[0.10-15.250]/20
  4. Select other options as req
  5. Click Create

Expected Behavior

When a range of addresses that spans multiple 1st, 2nd or 3rd octet ranges is entered for bulk creation, Netbox should create matching records for each.

Observed Behavior

Netbox returns an error indicating the entered IP range is invalid.

Originally created by @andy-lawson on GitHub (Jun 24, 2022). ### NetBox version v3.1.9 ### Python version 3.8 ### Steps to Reproduce 1. Click add IP address 2. Select Bulk Create 3. Specify range greater than a /24 _E.g. 10.1[0.10-15.250]/20_ 4. Select other options as req 5. Click Create ### Expected Behavior When a range of addresses that spans multiple 1st, 2nd or 3rd octet ranges is entered for bulk creation, Netbox should create matching records for each. ### Observed Behavior Netbox returns an error indicating the entered IP range is invalid.
adam closed this issue 2025-12-29 19:42:45 +01:00
Author
Owner

@andy-lawson commented on GitHub (Jun 24, 2022):

I am able to mitigate this issue by bulk creating the records up to 255 at a time as long as the 3rd octet does not change.

@andy-lawson commented on GitHub (Jun 24, 2022): I am able to mitigate this issue by bulk creating the records up to 255 at a time as long as the 3rd octet does not change.
Author
Owner

@jeremystretch commented on GitHub (Jun 24, 2022):

E.g. 10.1[0.10-15.250]/20

As the error indicates, this is not a valid range. You need to use multiple ranges, e.g. 10.[10-15].[10-250]/20

@jeremystretch commented on GitHub (Jun 24, 2022): > E.g. 10.1[0.10-15.250]/20 As the error indicates, this is not a valid range. You need to use multiple ranges, e.g. 10.[10-15].[10-250]/20
Author
Owner

@andy-lawson commented on GitHub (Jun 25, 2022):

Thanks Jeremy - makes perfect sense.

@andy-lawson commented on GitHub (Jun 25, 2022): Thanks Jeremy - makes perfect sense.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#6592