[PR #10787] [MERGED] Closes: #7854 - Add VDC/Instances/etc #13695

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

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/10787
Author: @DanSheps
Created: 10/28/2022
Status: Merged
Merged: 11/11/2022
Merged by: @jeremystretch

Base: featureHead: 7854-vdc


📝 Commits (10+)

📊 Changes

27 files changed (+890 additions, -14 deletions)

View changed files

📝 netbox/dcim/api/nested_serializers.py (+10 -0)
📝 netbox/dcim/api/serializers.py (+29 -7)
📝 netbox/dcim/api/urls.py (+1 -0)
📝 netbox/dcim/api/views.py (+8 -0)
📝 netbox/dcim/choices.py (+17 -0)
📝 netbox/dcim/filtersets.py (+57 -1)
📝 netbox/dcim/forms/bulk_edit.py (+22 -0)
📝 netbox/dcim/forms/bulk_import.py (+23 -0)
📝 netbox/dcim/forms/filtersets.py (+42 -1)
📝 netbox/dcim/forms/model_forms.py (+82 -2)
📝 netbox/dcim/graphql/schema.py (+4 -0)
📝 netbox/dcim/graphql/types.py (+8 -0)
netbox/dcim/migrations/0166_virtualdevicecontext.py (+54 -0)
📝 netbox/dcim/models/device_components.py (+4 -0)
📝 netbox/dcim/models/devices.py (+80 -1)
📝 netbox/dcim/tables/devices.py (+41 -0)
📝 netbox/dcim/tests/test_api.py (+63 -0)
📝 netbox/dcim/tests/test_filtersets.py (+108 -1)
📝 netbox/dcim/tests/test_models.py (+47 -0)
📝 netbox/dcim/tests/test_views.py (+45 -0)

...and 7 more files

📄 Description

Closes: #7854

This PR adds VDC/Instance/etc support to NetBox

  • Adds VDC Model
  • Adds vdc M2M field on Interfaces
  • Adds vdc_type field to device_type

Not stuck on the names, could be renamed "VirtualDeviceInstance" easily enough to be more encompassing and less Ciscoy


🔄 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/10787 **Author:** [@DanSheps](https://github.com/DanSheps) **Created:** 10/28/2022 **Status:** ✅ Merged **Merged:** 11/11/2022 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `feature` ← **Head:** `7854-vdc` --- ### 📝 Commits (10+) - [`11471a2`](https://github.com/netbox-community/netbox/commit/11471a22de55d9947d46b9c7a261918fec6c192f) Work on #7854 - [`8b07cc1`](https://github.com/netbox-community/netbox/commit/8b07cc12bb1e9383a2bb24e9d6ab36830b4a5021) Move to new URL scheme. - [`ecf88f0`](https://github.com/netbox-community/netbox/commit/ecf88f00ec4da073617e025ca97c8dc169a4b660) Fix PEP8 errors - [`f366edc`](https://github.com/netbox-community/netbox/commit/f366edc3a1a9b506766bcb6df0db608c16264ee6) Fix PEP8 errors - [`9aef6fe`](https://github.com/netbox-community/netbox/commit/9aef6fe87aae2547515ca68bac48da1d9c3a344b) Add GraphQL and fix primary_ip missing - [`04af1e1`](https://github.com/netbox-community/netbox/commit/04af1e12b2209ae43e71e2449b1038910e43364a) Fix PEP8 on GQL Type - [`b78eebe`](https://github.com/netbox-community/netbox/commit/b78eebed312355730ef1ac24b98da2ac71600c45) Fix missing NestedSerializer. - [`2e1f915`](https://github.com/netbox-community/netbox/commit/2e1f9150d1b791f7b760c834b0eff14901c575aa) Fix missing NestedSerializer & rename VDC to VDCs - [`969bca6`](https://github.com/netbox-community/netbox/commit/969bca6e630b93bd0585ab2196ebc235e20004fb) Fix migration - [`52fbd84`](https://github.com/netbox-community/netbox/commit/52fbd84d3fdf94f984511fcbffcd1e9c3fc885f8) Change Validation for identifier ### 📊 Changes **27 files changed** (+890 additions, -14 deletions) <details> <summary>View changed files</summary> 📝 `netbox/dcim/api/nested_serializers.py` (+10 -0) 📝 `netbox/dcim/api/serializers.py` (+29 -7) 📝 `netbox/dcim/api/urls.py` (+1 -0) 📝 `netbox/dcim/api/views.py` (+8 -0) 📝 `netbox/dcim/choices.py` (+17 -0) 📝 `netbox/dcim/filtersets.py` (+57 -1) 📝 `netbox/dcim/forms/bulk_edit.py` (+22 -0) 📝 `netbox/dcim/forms/bulk_import.py` (+23 -0) 📝 `netbox/dcim/forms/filtersets.py` (+42 -1) 📝 `netbox/dcim/forms/model_forms.py` (+82 -2) 📝 `netbox/dcim/graphql/schema.py` (+4 -0) 📝 `netbox/dcim/graphql/types.py` (+8 -0) ➕ `netbox/dcim/migrations/0166_virtualdevicecontext.py` (+54 -0) 📝 `netbox/dcim/models/device_components.py` (+4 -0) 📝 `netbox/dcim/models/devices.py` (+80 -1) 📝 `netbox/dcim/tables/devices.py` (+41 -0) 📝 `netbox/dcim/tests/test_api.py` (+63 -0) 📝 `netbox/dcim/tests/test_filtersets.py` (+108 -1) 📝 `netbox/dcim/tests/test_models.py` (+47 -0) 📝 `netbox/dcim/tests/test_views.py` (+45 -0) _...and 7 more files_ </details> ### 📄 Description ### Closes: #7854 This PR adds VDC/Instance/etc support to NetBox * Adds VDC Model * Adds vdc M2M field on Interfaces * Adds vdc_type field to device_type Not stuck on the names, could be renamed "VirtualDeviceInstance" easily enough to be more encompassing and less Ciscoy --- <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:20:18 +01:00
adam closed this issue 2025-12-29 23:20:18 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#13695