[PR #11835] [MERGED] Closes #8550: Implement ASN ranges #13854

Closed
opened 2025-12-29 23:21:11 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/11835
Author: @jeremystretch
Created: 2/26/2023
Status: Merged
Merged: 2/27/2023
Merged by: @jeremystretch

Base: featureHead: 8550-asnrange


📝 Commits (10+)

  • 45b86db Move ASN to a separate module
  • 1e1aac5 Move ASNField from dcim to ipam
  • 7e7c9e9 Introduce ASNRange model
  • 6ce40b5 Add relationship from ASN to ASNRange
  • feb52d5 Add an available-asns API endpoint
  • b3e03f3 Add RIR assignment for ASNRange
  • 450f227 Add standard tests
  • 67569fe Move child ASNs to a tabbed view
  • 92dd015 Remove FK on ASN to ASNRange
  • 7cb0ecc Add tests for provisioning available ASNs

📊 Changes

41 files changed (+1096 additions, -246 deletions)

View changed files

📝 docs/models/ipam/asn.md (+2 -2)
docs/models/ipam/asnrange.md (+21 -0)
📝 docs/release-notes/version-3.5.md (+4 -0)
📝 mkdocs.yml (+1 -0)
📝 netbox/circuits/migrations/0001_squashed.py (+2 -2)
📝 netbox/dcim/fields.py (+0 -18)
📝 netbox/dcim/migrations/0001_squashed.py (+2 -1)
📝 netbox/ipam/api/nested_serializers.py (+13 -0)
📝 netbox/ipam/api/serializers.py (+35 -3)
📝 netbox/ipam/api/urls.py (+6 -23)
📝 netbox/ipam/api/views.py (+74 -0)
📝 netbox/ipam/constants.py (+0 -4)
📝 netbox/ipam/fields.py (+27 -0)
📝 netbox/ipam/filtersets.py (+24 -0)
📝 netbox/ipam/forms/bulk_edit.py (+24 -1)
📝 netbox/ipam/forms/bulk_import.py (+19 -0)
📝 netbox/ipam/forms/filtersets.py (+22 -0)
📝 netbox/ipam/forms/model_forms.py (+19 -0)
📝 netbox/ipam/graphql/schema.py (+3 -0)
📝 netbox/ipam/graphql/types.py (+9 -1)

...and 21 more files

📄 Description

Closes: #8550

  • Move ASNField class from dcim to ipam
  • Move ASN model and table to separate modules
  • Introduce an ASNRange model, which must be assigned to a RIR and may be assigned to a tenant
  • Provide a REST API endpoint for retrieving/provisioning available ASNs within a range

🔄 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/11835 **Author:** [@jeremystretch](https://github.com/jeremystretch) **Created:** 2/26/2023 **Status:** ✅ Merged **Merged:** 2/27/2023 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `feature` ← **Head:** `8550-asnrange` --- ### 📝 Commits (10+) - [`45b86db`](https://github.com/netbox-community/netbox/commit/45b86db600ff2190cbcd9a0790154c469adfff4e) Move ASN to a separate module - [`1e1aac5`](https://github.com/netbox-community/netbox/commit/1e1aac5c487fb3ffabe4aea08c6adc8582bb7c09) Move ASNField from dcim to ipam - [`7e7c9e9`](https://github.com/netbox-community/netbox/commit/7e7c9e981d1a07a7acd596956d290562379599b7) Introduce ASNRange model - [`6ce40b5`](https://github.com/netbox-community/netbox/commit/6ce40b58cb9876b9754b1f7449129e5f1b07f782) Add relationship from ASN to ASNRange - [`feb52d5`](https://github.com/netbox-community/netbox/commit/feb52d5c9342c867f7ade65a233f301137809480) Add an available-asns API endpoint - [`b3e03f3`](https://github.com/netbox-community/netbox/commit/b3e03f337c104efb1850e1b3f61c877a022817a4) Add RIR assignment for ASNRange - [`450f227`](https://github.com/netbox-community/netbox/commit/450f22755fc7f07e04ed6e68cb623a04fbd638d6) Add standard tests - [`67569fe`](https://github.com/netbox-community/netbox/commit/67569fe26405e6e44fa75c26ff589589ff5dfa4d) Move child ASNs to a tabbed view - [`92dd015`](https://github.com/netbox-community/netbox/commit/92dd015cab3c0e2263026c1e1076c4906d566c23) Remove FK on ASN to ASNRange - [`7cb0ecc`](https://github.com/netbox-community/netbox/commit/7cb0ecc11fe21e1861ef81979da0af5d77b47dd5) Add tests for provisioning available ASNs ### 📊 Changes **41 files changed** (+1096 additions, -246 deletions) <details> <summary>View changed files</summary> 📝 `docs/models/ipam/asn.md` (+2 -2) ➕ `docs/models/ipam/asnrange.md` (+21 -0) 📝 `docs/release-notes/version-3.5.md` (+4 -0) 📝 `mkdocs.yml` (+1 -0) 📝 `netbox/circuits/migrations/0001_squashed.py` (+2 -2) 📝 `netbox/dcim/fields.py` (+0 -18) 📝 `netbox/dcim/migrations/0001_squashed.py` (+2 -1) 📝 `netbox/ipam/api/nested_serializers.py` (+13 -0) 📝 `netbox/ipam/api/serializers.py` (+35 -3) 📝 `netbox/ipam/api/urls.py` (+6 -23) 📝 `netbox/ipam/api/views.py` (+74 -0) 📝 `netbox/ipam/constants.py` (+0 -4) 📝 `netbox/ipam/fields.py` (+27 -0) 📝 `netbox/ipam/filtersets.py` (+24 -0) 📝 `netbox/ipam/forms/bulk_edit.py` (+24 -1) 📝 `netbox/ipam/forms/bulk_import.py` (+19 -0) 📝 `netbox/ipam/forms/filtersets.py` (+22 -0) 📝 `netbox/ipam/forms/model_forms.py` (+19 -0) 📝 `netbox/ipam/graphql/schema.py` (+3 -0) 📝 `netbox/ipam/graphql/types.py` (+9 -1) _...and 21 more files_ </details> ### 📄 Description ### Closes: #8550 - Move ASNField class from `dcim` to `ipam` - Move ASN model and table to separate modules - Introduce an ASNRange model, which must be assigned to a RIR and may be assigned to a tenant - Provide a REST API endpoint for retrieving/provisioning available ASNs within a range --- <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-29 23:21:11 +01:00
adam closed this issue 2025-12-29 23:21:11 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#13854