netbox-community / netbox

The premier source of truth powering network automation. Open source under Apache 2. Try NetBox Cloud free: https://netboxlabs.com/free-netbox-cloud/
http://netboxlabs.com/oss/netbox/
Apache License 2.0
16.38k stars 2.6k forks source link

Show Aggregate and RIR on Prefixes in API #11507

Open ninjaix opened 1 year ago

ninjaix commented 1 year ago

NetBox version

v.3.4.1

Feature type

Change to existing functionality

Proposed functionality

In the API show aggregate and RIR value on get prefixes.

Use case

This would allow us easier use of updating our ARIN Networks by not having to re-enter custom fields for the Parent Network and RIR.

Database changes

This tables are already related in the Database.

External dependencies

none

jsenecal commented 1 year ago

Hi @ninjaix,

Not sure how you built your workflow but, would querying aggregates first and then their subnets work for you ? This is a simple pattern that works just fine for us.

github-actions[bot] commented 1 year ago

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.