[PR #393] [MERGED] Multitenancy #12051

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

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/393
Author: @jeremystretch
Created: 7/27/2016
Status: Merged
Merged: 7/27/2016
Merged by: @jeremystretch

Base: developHead: multitenancy


📝 Commits (10+)

  • fa2ccc1 Initial multitenancy implementation
  • 06af057 Applied tenancy to circuits
  • 1939db1 Added tenant to import/export of Circuits
  • 82a98f0 Applied tenancy to sites, racks, and devices
  • 6f68628 Added tenant to circuit bulk editing; enabled filtering of circuits by tenant
  • 7ca4c81 Added related_name to tenant fields on Site, Rack, and Device
  • faa12ab Enabled filtering of sites, racks, and devices by tenant
  • 27c2123 Added description to Tenant model
  • 41b2b7d Fixed Tenant import
  • 2236d2f Fixed tenant assignment on bulk edit of racks, devices

📊 Changes

76 files changed (+1327 additions, -124 deletions)

View changed files

docs/data-model/tenancy.md (+9 -0)
📝 netbox/circuits/admin.py (+4 -3)
📝 netbox/circuits/api/serializers.py (+4 -2)
📝 netbox/circuits/api/views.py (+2 -2)
📝 netbox/circuits/filters.py (+12 -0)
📝 netbox/circuits/forms.py (+14 -3)
netbox/circuits/migrations/0004_circuit_add_tenant.py (+22 -0)
📝 netbox/circuits/models.py (+3 -0)
📝 netbox/circuits/tables.py (+2 -1)
📝 netbox/circuits/views.py (+2 -2)
📝 netbox/dcim/api/serializers.py (+10 -6)
📝 netbox/dcim/api/views.py (+7 -6)
📝 netbox/dcim/filters.py (+34 -0)
📝 netbox/dcim/forms.py (+43 -10)
netbox/dcim/migrations/0012_site_rack_device_add_tenant.py (+32 -0)
📝 netbox/dcim/models.py (+7 -0)
📝 netbox/dcim/tables.py (+13 -7)
📝 netbox/dcim/tests/test_apis.py (+6 -0)
📝 netbox/dcim/views.py (+4 -3)
📝 netbox/ipam/admin.py (+9 -4)

...and 56 more files

📄 Description

Implements tenancy assignment for:

  • Sites
  • Racks
  • Devices
  • VRFs
  • VLANs
  • Circuits

🔄 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/393 **Author:** [@jeremystretch](https://github.com/jeremystretch) **Created:** 7/27/2016 **Status:** ✅ Merged **Merged:** 7/27/2016 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `develop` ← **Head:** `multitenancy` --- ### 📝 Commits (10+) - [`fa2ccc1`](https://github.com/netbox-community/netbox/commit/fa2ccc1c18643f65892e0d5c706a11e5ac18992a) Initial multitenancy implementation - [`06af057`](https://github.com/netbox-community/netbox/commit/06af05708acea75d248e3820a68ba940ff5a3471) Applied tenancy to circuits - [`1939db1`](https://github.com/netbox-community/netbox/commit/1939db1574913cbda0362ab208231360a83c99b9) Added tenant to import/export of Circuits - [`82a98f0`](https://github.com/netbox-community/netbox/commit/82a98f0e8f31deaca9926f138c81545c04f150c9) Applied tenancy to sites, racks, and devices - [`6f68628`](https://github.com/netbox-community/netbox/commit/6f686283771d104db91c8b6d44dcb88c46a0489b) Added tenant to circuit bulk editing; enabled filtering of circuits by tenant - [`7ca4c81`](https://github.com/netbox-community/netbox/commit/7ca4c816c062a759093ad56e6e9f0a2f53309c2c) Added related_name to tenant fields on Site, Rack, and Device - [`faa12ab`](https://github.com/netbox-community/netbox/commit/faa12abc70efa8a05c6166fd3066dd91f6644351) Enabled filtering of sites, racks, and devices by tenant - [`27c2123`](https://github.com/netbox-community/netbox/commit/27c21237ff728439e871514c3120b390226011c6) Added description to Tenant model - [`41b2b7d`](https://github.com/netbox-community/netbox/commit/41b2b7dbf638e5efe56919726726141fff9a3f3b) Fixed Tenant import - [`2236d2f`](https://github.com/netbox-community/netbox/commit/2236d2f941ec2c6df2eab5b3c0e99eb1d5ada915) Fixed tenant assignment on bulk edit of racks, devices ### 📊 Changes **76 files changed** (+1327 additions, -124 deletions) <details> <summary>View changed files</summary> ➕ `docs/data-model/tenancy.md` (+9 -0) 📝 `netbox/circuits/admin.py` (+4 -3) 📝 `netbox/circuits/api/serializers.py` (+4 -2) 📝 `netbox/circuits/api/views.py` (+2 -2) 📝 `netbox/circuits/filters.py` (+12 -0) 📝 `netbox/circuits/forms.py` (+14 -3) ➕ `netbox/circuits/migrations/0004_circuit_add_tenant.py` (+22 -0) 📝 `netbox/circuits/models.py` (+3 -0) 📝 `netbox/circuits/tables.py` (+2 -1) 📝 `netbox/circuits/views.py` (+2 -2) 📝 `netbox/dcim/api/serializers.py` (+10 -6) 📝 `netbox/dcim/api/views.py` (+7 -6) 📝 `netbox/dcim/filters.py` (+34 -0) 📝 `netbox/dcim/forms.py` (+43 -10) ➕ `netbox/dcim/migrations/0012_site_rack_device_add_tenant.py` (+32 -0) 📝 `netbox/dcim/models.py` (+7 -0) 📝 `netbox/dcim/tables.py` (+13 -7) 📝 `netbox/dcim/tests/test_apis.py` (+6 -0) 📝 `netbox/dcim/views.py` (+4 -3) 📝 `netbox/ipam/admin.py` (+9 -4) _...and 56 more files_ </details> ### 📄 Description Implements tenancy assignment for: - Sites - Racks - Devices - VRFs - VLANs - Circuits --- <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:19:21 +01:00
adam closed this issue 2025-12-29 22:19:21 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#12051