Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support pagination for available IPs endpoints #10777

Closed
ajm5774 opened this issue Oct 27, 2022 · 5 comments
Closed

Support pagination for available IPs endpoints #10777

ajm5774 opened this issue Oct 27, 2022 · 5 comments
Labels
pending closure Requires immediate attention to avoid being closed for inactivity status: needs owner This issue is tentatively accepted pending a volunteer committed to its implementation type: feature Introduction of new functionality to the application

Comments

@ajm5774
Copy link

ajm5774 commented Oct 27, 2022

NetBox version

v3.3.6

Feature type

New functionality

Proposed functionality

I would like to specify an "offset" in the prefix available-ips endpoint query string parameters. Currently there is the capability to add "limit" to the query string parameters which defaults to 50, but "offset" is ignored.

Example:
https://demo.netbox.dev/api/ipam/prefixes/96/available-ips/?limit=1&offset=5

Use case

List out all available IP addresses for a prefix.

For our case in particular, we are using this to calculate the percent utilization for a prefix. We alert on prefixes that are over-utilized so that we can take action before running out of available IPs.

Database changes

No response

External dependencies

No response

@ajm5774 ajm5774 added the type: feature Introduction of new functionality to the application label Oct 27, 2022
@SignalR-Dev
Copy link

Just 1 Up for the Issue ,
Foolish work arround in the mean time (not preferable sollution)
As the API still Honors the Pagination value Global set a setting of
PAGINATE_COUNT: "510"
gives you the result. (at least up to a /23 Netmask)
Downside the UI Reflects this Value in Defrault Tables as well + there is noc way to tell .next if the Prefix is bigger

@jeremystretch
Copy link
Member

For our case in particular, we are using this to calculate the percent utilization for a prefix

This specific use case should be covered by #9649.

@jeremystretch jeremystretch added the status: under review Further discussion is needed to determine this issue's scope and/or implementation label Jan 5, 2023
@jeremystretch jeremystretch changed the title Add "offset" to prefix available-ips endpoint Support pagination for available IPs endpoints Apr 5, 2023
@jeremystretch jeremystretch added status: blocked Another issue or external requirement is preventing implementation and removed status: under review Further discussion is needed to determine this issue's scope and/or implementation labels Apr 5, 2023
@jeremystretch
Copy link
Member

Marking this as blocked by #12180.

@jeremystretch jeremystretch added status: needs owner This issue is tentatively accepted pending a volunteer committed to its implementation and removed status: blocked Another issue or external requirement is preventing implementation labels Dec 27, 2023
Copy link
Contributor

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. NetBox is governed by a small group of core maintainers which means not all opened issues may receive direct feedback. Do not attempt to circumvent this process by "bumping" the issue; doing so will result in its immediate closure and you may be barred from participating in any future discussions. Please see our contributing guide.

@github-actions github-actions bot added the pending closure Requires immediate attention to avoid being closed for inactivity label Mar 27, 2024
Copy link
Contributor

This issue has been automatically closed due to lack of activity. In an effort to reduce noise, please do not comment any further. Note that the core maintainers may elect to reopen this issue at a later date if deemed necessary.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale May 16, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 15, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
pending closure Requires immediate attention to avoid being closed for inactivity status: needs owner This issue is tentatively accepted pending a volunteer committed to its implementation type: feature Introduction of new functionality to the application
Projects
None yet
Development

No branches or pull requests

3 participants