[PR #18935] [CLOSED] Closes: #11507 - Show Prefixes Aggregate and RIR on API view #15480

Closed
opened 2025-12-30 00:22:10 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/18935
Author: @DanSheps
Created: 3/18/2025
Status: Closed

Base: featureHead: 11507-show-aggregate-and-rir-on-api


📝 Commits (5)

  • 1777d42 Work on 11507
  • e32d2ca Annotate queryset instead of using a model property
  • 97d426d Correct test failure and add check for related_model
  • d699c69 Fix test
  • 64fca01 Final test fix

📊 Changes

4 files changed (+95 additions, -4 deletions)

View changed files

📝 netbox/ipam/api/serializers_/ip.py (+5 -3)
📝 netbox/ipam/api/views.py (+29 -0)
📝 netbox/ipam/tests/test_api.py (+25 -0)
📝 netbox/utilities/fields.py (+36 -1)

📄 Description

Closes: #11507 - Show Prefixes Aggregate and RIR on API view

  • Add rir property method to model
  • Add aggregate property method to model
  • Add rir attribute to serializer
  • Add aggregate attribute to serializer
  • Add test for both rir and aggregate fields on API

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/netbox-community/netbox/pull/18935 **Author:** [@DanSheps](https://github.com/DanSheps) **Created:** 3/18/2025 **Status:** ❌ Closed **Base:** `feature` ← **Head:** `11507-show-aggregate-and-rir-on-api` --- ### 📝 Commits (5) - [`1777d42`](https://github.com/netbox-community/netbox/commit/1777d4228e995230f4b6eeb9df733d0479d9ec80) Work on 11507 - [`e32d2ca`](https://github.com/netbox-community/netbox/commit/e32d2ca637e6b2385b61b14921a3dc84da1ad393) Annotate queryset instead of using a model property - [`97d426d`](https://github.com/netbox-community/netbox/commit/97d426d205002bda90f08796a374d1aea64e9f2a) Correct test failure and add check for related_model - [`d699c69`](https://github.com/netbox-community/netbox/commit/d699c69abfbf1e68a8b92e4cb265c74b8cc44836) Fix test - [`64fca01`](https://github.com/netbox-community/netbox/commit/64fca01cdb7efaa14caf8ba0c125435410171320) Final test fix ### 📊 Changes **4 files changed** (+95 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `netbox/ipam/api/serializers_/ip.py` (+5 -3) 📝 `netbox/ipam/api/views.py` (+29 -0) 📝 `netbox/ipam/tests/test_api.py` (+25 -0) 📝 `netbox/utilities/fields.py` (+36 -1) </details> ### 📄 Description ### Closes: #11507 - Show Prefixes Aggregate and RIR on API view * Add `rir` property method to model * Add `aggregate` property method to model * Add `rir` attribute to serializer * Add `aggregate` attribute to serializer * Add test for both rir and aggregate fields on API --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
adam added the pull-request label 2025-12-30 00:22:10 +01:00
adam closed this issue 2025-12-30 00:22:10 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#15480