Make Prefix Utilization and Aggregate Utilization available via API #7292
Labels
netbox
status: blocked
Another issue or external requirement is preventing implementation
type: feature
Introduction of new functionality to the application
NetBox version
v2.11.12
Feature type
Data model extension
Proposed functionality
Currently, the UI displays the utilization for prefixes and aggregates - like that functionality. We would like to obtain the utilization via API as well. It appears that the utilization is being calculated on the fly to display in the API. Could you expose that to the API ?
Use case
There are a number of cases where it would be helpful:
We are programmatically allocating prefixes as part of our ordering system and today we are simply attempting to allocate prefix size FOO from block A, on failure we move to block B. We would like to be able to see the utilization of a block and quickly determine whether or not to attempt to allocate from that prefix or container.
We would like to be able to quickly generate our own utilization reports using the calculations already performed in Netbox rather than re-writing the same allocation logic and this would be helpful.
Database changes
No response
External dependencies
No response
The text was updated successfully, but these errors were encountered: