[PR #3675] [MERGED] Introduce power port and outlet types #12612

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

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/3675
Author: @jeremystretch
Created: 11/6/2019
Status: Merged
Merged: 11/6/2019
Merged by: @jeremystretch

Base: develop-2.7Head: 792-power-types


📝 Commits (1)

📊 Changes

12 files changed (+305 additions, -25 deletions)

View changed files

📝 netbox/dcim/api/serializers.py (+21 -4)
📝 netbox/dcim/api/views.py (+4 -3)
📝 netbox/dcim/choices.py (+174 -0)
📝 netbox/dcim/filters.py (+4 -4)
📝 netbox/dcim/forms.py (+27 -7)
netbox/dcim/migrations/0077_power_types.py (+33 -0)
📝 netbox/dcim/models.py (+25 -2)
📝 netbox/dcim/tables.py (+4 -4)
📝 netbox/templates/dcim/device.html (+1 -0)
📝 netbox/templates/dcim/inc/consoleport.html (+2 -1)
📝 netbox/templates/dcim/inc/poweroutlet.html (+5 -0)
📝 netbox/templates/dcim/inc/powerport.html (+5 -0)

📄 Description

Closes: #792

Introduces the type field for PowerPorts and PowerOutlets, and their respective component templates. These fields are slug-based rather than integer-based per #3569.


🔄 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/3675 **Author:** [@jeremystretch](https://github.com/jeremystretch) **Created:** 11/6/2019 **Status:** ✅ Merged **Merged:** 11/6/2019 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `develop-2.7` ← **Head:** `792-power-types` --- ### 📝 Commits (1) - [`6ccaa0d`](https://github.com/netbox-community/netbox/commit/6ccaa0d9bde1b9883b7829c32592335f5c068e87) Initial work on #792 ### 📊 Changes **12 files changed** (+305 additions, -25 deletions) <details> <summary>View changed files</summary> 📝 `netbox/dcim/api/serializers.py` (+21 -4) 📝 `netbox/dcim/api/views.py` (+4 -3) 📝 `netbox/dcim/choices.py` (+174 -0) 📝 `netbox/dcim/filters.py` (+4 -4) 📝 `netbox/dcim/forms.py` (+27 -7) ➕ `netbox/dcim/migrations/0077_power_types.py` (+33 -0) 📝 `netbox/dcim/models.py` (+25 -2) 📝 `netbox/dcim/tables.py` (+4 -4) 📝 `netbox/templates/dcim/device.html` (+1 -0) 📝 `netbox/templates/dcim/inc/consoleport.html` (+2 -1) 📝 `netbox/templates/dcim/inc/poweroutlet.html` (+5 -0) 📝 `netbox/templates/dcim/inc/powerport.html` (+5 -0) </details> ### 📄 Description ### Closes: #792 Introduces the `type` field for PowerPorts and PowerOutlets, and their respective component templates. These fields are slug-based rather than integer-based per #3569. --- <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:22:38 +01:00
adam closed this issue 2025-12-29 22:22:38 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#12612