Skip to content

Post to /api/ipam/prefixes/<int:pk>/available-ips/ is slow when the prefix is large #14026

@tobiasge

Description

@tobiasge

NetBox version

v3.6.3

Python version

3.11

Steps to Reproduce

  1. Create large prefix (e. g. 10.0.0.0/8)
  2. Request an IP from the created prefix with:
    curl -v -X POST -d '{}' -H 'Content-Type: application/json' -H 'Accept: application/json' -H 'Authorization: Token REDACTED' http://localhost:8787/api/ipam/prefixes/$idOfPrefixFromStep1/available-ips/

Expected Behavior

Get a fast response

Observed Behavior

Response takes over 30 seconds

Metadata

Metadata

Assignees

Labels

severity: lowDoes not significantly disrupt application functionality, or a workaround is availablestatus: acceptedThis issue has been accepted for implementationtype: bugA confirmed report of unexpected behavior in the application

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions