[PR #6760] [MERGED] Closes #834: Add support for IP ranges #13164

Closed
opened 2025-12-29 22:25:45 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/6760
Author: @jeremystretch
Created: 7/16/2021
Status: Merged
Merged: 7/19/2021
Merged by: @jeremystretch

Base: featureHead: 834-ip-ranges


📝 Commits (4)

  • 11a1492 Initial work on IP ranges
  • 8d8ac70 Add IP range documentation
  • 747c065 Move available IP/prefix endpoints to API view mixins
  • 0fe1a42 Add available IPs REST API endpoint for IP ranges

📊 Changes

27 files changed (+1270 additions, -200 deletions)

View changed files

📝 docs/core-functionality/ipam.md (+1 -0)
docs/models/ipam/iprange.md (+11 -0)
netbox/ipam/api/mixins.py (+181 -0)
📝 netbox/ipam/api/nested_serializers.py (+14 -0)
📝 netbox/ipam/api/serializers.py (+26 -4)
📝 netbox/ipam/api/urls.py (+3 -0)
📝 netbox/ipam/api/views.py (+16 -175)
📝 netbox/ipam/choices.py (+24 -1)
📝 netbox/ipam/filtersets.py (+69 -1)
📝 netbox/ipam/forms.py (+139 -1)
📝 netbox/ipam/graphql/schema.py (+3 -0)
📝 netbox/ipam/graphql/types.py (+12 -0)
netbox/ipam/migrations/0050_iprange.py (+43 -0)
📝 netbox/ipam/models/__init__.py (+1 -0)
📝 netbox/ipam/models/ip.py (+197 -4)
📝 netbox/ipam/tables.py (+34 -1)
📝 netbox/ipam/tests/test_api.py (+101 -1)
📝 netbox/ipam/tests/test_filtersets.py (+92 -1)
📝 netbox/ipam/tests/test_views.py (+59 -1)
📝 netbox/ipam/urls.py (+14 -1)

...and 7 more files

📄 Description

Fixes: #834

  • Introduce the ipam.IPRange model
  • Add standard UI views, tables, filterset
  • Add REST API serializers, views
  • Add GraphQL object type
  • Add tests and documentation

🔄 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/6760 **Author:** [@jeremystretch](https://github.com/jeremystretch) **Created:** 7/16/2021 **Status:** ✅ Merged **Merged:** 7/19/2021 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `feature` ← **Head:** `834-ip-ranges` --- ### 📝 Commits (4) - [`11a1492`](https://github.com/netbox-community/netbox/commit/11a14927c9ad6a47db0da5982df3d44d6f85ea1b) Initial work on IP ranges - [`8d8ac70`](https://github.com/netbox-community/netbox/commit/8d8ac70070a83bc3129d6ff5f7d7a9fd76559cc8) Add IP range documentation - [`747c065`](https://github.com/netbox-community/netbox/commit/747c065213a61548536ff1e97175571189baa142) Move available IP/prefix endpoints to API view mixins - [`0fe1a42`](https://github.com/netbox-community/netbox/commit/0fe1a426c09a3822bb4794d1e255b0b615b70b4a) Add available IPs REST API endpoint for IP ranges ### 📊 Changes **27 files changed** (+1270 additions, -200 deletions) <details> <summary>View changed files</summary> 📝 `docs/core-functionality/ipam.md` (+1 -0) ➕ `docs/models/ipam/iprange.md` (+11 -0) ➕ `netbox/ipam/api/mixins.py` (+181 -0) 📝 `netbox/ipam/api/nested_serializers.py` (+14 -0) 📝 `netbox/ipam/api/serializers.py` (+26 -4) 📝 `netbox/ipam/api/urls.py` (+3 -0) 📝 `netbox/ipam/api/views.py` (+16 -175) 📝 `netbox/ipam/choices.py` (+24 -1) 📝 `netbox/ipam/filtersets.py` (+69 -1) 📝 `netbox/ipam/forms.py` (+139 -1) 📝 `netbox/ipam/graphql/schema.py` (+3 -0) 📝 `netbox/ipam/graphql/types.py` (+12 -0) ➕ `netbox/ipam/migrations/0050_iprange.py` (+43 -0) 📝 `netbox/ipam/models/__init__.py` (+1 -0) 📝 `netbox/ipam/models/ip.py` (+197 -4) 📝 `netbox/ipam/tables.py` (+34 -1) 📝 `netbox/ipam/tests/test_api.py` (+101 -1) 📝 `netbox/ipam/tests/test_filtersets.py` (+92 -1) 📝 `netbox/ipam/tests/test_views.py` (+59 -1) 📝 `netbox/ipam/urls.py` (+14 -1) _...and 7 more files_ </details> ### 📄 Description ### Fixes: #834 - Introduce the `ipam.IPRange` model - Add standard UI views, tables, filterset - Add REST API serializers, views - Add GraphQL object type - Add tests and documentation --- <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 22:25:45 +01:00
adam closed this issue 2025-12-29 22:25:45 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#13164