[PR #590] [MERGED] Service Port functionality #539 #12084

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

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/590
Author: @if-fi
Created: 10/1/2016
Status: Merged
Merged: 12/15/2016
Merged by: @jeremystretch

Base: service-portsHead: service-port


📝 Commits (10+)

  • b19ef33 Add ServicePort model
  • df9557a Add ServicePort panel in Device page
  • 974d841 Add "Add ServicePort" functionality
  • 81a9e05 Add "Edit" and "Delete" Service port functionality
  • 2a3c096 Add ServicePort API serializers
  • 4bf59c9 Rename ServicePort.type to ServicePort.protocol
  • 53ef9aa Add IPv6 support for assigning a ServicePort to all device's IPs
  • 3cc54a1 Make ServicePort bound to Device and make IPAddres optional
  • 2cd5e49 Move ServicePort related urls and views from ipam to dcim
  • 2563ce6 Move serviceport templates to dcim folder

📊 Changes

16 files changed (+506 additions, -10 deletions)

View changed files

📝 netbox/dcim/api/serializers.py (+30 -1)
📝 netbox/dcim/api/urls.py (+4 -0)
📝 netbox/dcim/api/views.py (+21 -1)
📝 netbox/dcim/forms.py (+52 -1)
netbox/dcim/migrations/0022_add_service_port.py (+40 -0)
📝 netbox/dcim/models.py (+70 -0)
📝 netbox/dcim/urls.py (+6 -0)
📝 netbox/dcim/views.py (+78 -2)
📝 netbox/ipam/forms.py (+1 -1)
📝 netbox/ipam/models.py (+0 -2)
📝 netbox/ipam/views.py (+2 -2)
📝 netbox/templates/dcim/device.html (+24 -0)
netbox/templates/dcim/inc/_port.html (+33 -0)
netbox/templates/dcim/serviceport.html (+76 -0)
netbox/templates/dcim/serviceport_add.html (+43 -0)
netbox/templates/dcim/serviceport_edit.html (+26 -0)

📄 Description

Hello netbox maintainers,

This is the functionality for Device Service Ports as described in #539.
It adds possibility to add a Service Port to a Device's IP address.
The port fields include - a reference to an IP address, a type (tcp/udp), a port number, a name and a description.

You will also find functionality to edit and delete and serialize ServicePort.

I am looking forward for your comments.


🔄 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/590 **Author:** [@if-fi](https://github.com/if-fi) **Created:** 10/1/2016 **Status:** ✅ Merged **Merged:** 12/15/2016 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `service-ports` ← **Head:** `service-port` --- ### 📝 Commits (10+) - [`b19ef33`](https://github.com/netbox-community/netbox/commit/b19ef336bdf96a037e8999635a38bf1034c846ad) Add ServicePort model - [`df9557a`](https://github.com/netbox-community/netbox/commit/df9557a328c3643735bde30b59cc98bcad0fbeb6) Add ServicePort panel in Device page - [`974d841`](https://github.com/netbox-community/netbox/commit/974d8419e68edc58123c5648ef301bb4cbebd9d5) Add "Add ServicePort" functionality - [`81a9e05`](https://github.com/netbox-community/netbox/commit/81a9e05b62b2c659e0c9a4734356efbf698b4a0f) Add "Edit" and "Delete" Service port functionality - [`2a3c096`](https://github.com/netbox-community/netbox/commit/2a3c096af3cdfda500e146057f1434ea02237852) Add ServicePort API serializers - [`4bf59c9`](https://github.com/netbox-community/netbox/commit/4bf59c982e0148130f5a2b6c9013f8035d2d6633) Rename ServicePort.type to ServicePort.protocol - [`53ef9aa`](https://github.com/netbox-community/netbox/commit/53ef9aa02eee046d16725229871c8e5409d0b87c) Add IPv6 support for assigning a ServicePort to all device's IPs - [`3cc54a1`](https://github.com/netbox-community/netbox/commit/3cc54a1886dede07af416d294a7b5c13f387b67d) Make ServicePort bound to Device and make IPAddres optional - [`2cd5e49`](https://github.com/netbox-community/netbox/commit/2cd5e49e91631fe7606d9e4438de4375aa0b9ae2) Move ServicePort related urls and views from `ipam` to `dcim` - [`2563ce6`](https://github.com/netbox-community/netbox/commit/2563ce624cb7342e9905df27ca950815c2d4a6fd) Move serviceport templates to `dcim` folder ### 📊 Changes **16 files changed** (+506 additions, -10 deletions) <details> <summary>View changed files</summary> 📝 `netbox/dcim/api/serializers.py` (+30 -1) 📝 `netbox/dcim/api/urls.py` (+4 -0) 📝 `netbox/dcim/api/views.py` (+21 -1) 📝 `netbox/dcim/forms.py` (+52 -1) ➕ `netbox/dcim/migrations/0022_add_service_port.py` (+40 -0) 📝 `netbox/dcim/models.py` (+70 -0) 📝 `netbox/dcim/urls.py` (+6 -0) 📝 `netbox/dcim/views.py` (+78 -2) 📝 `netbox/ipam/forms.py` (+1 -1) 📝 `netbox/ipam/models.py` (+0 -2) 📝 `netbox/ipam/views.py` (+2 -2) 📝 `netbox/templates/dcim/device.html` (+24 -0) ➕ `netbox/templates/dcim/inc/_port.html` (+33 -0) ➕ `netbox/templates/dcim/serviceport.html` (+76 -0) ➕ `netbox/templates/dcim/serviceport_add.html` (+43 -0) ➕ `netbox/templates/dcim/serviceport_edit.html` (+26 -0) </details> ### 📄 Description Hello netbox maintainers, This is the functionality for Device Service Ports as described in #539. It adds possibility to add a Service Port to a Device's IP address. The port fields include - a reference to an IP address, a type (tcp/udp), a port number, a name and a description. You will also find functionality to edit and delete and serialize ServicePort. I am looking forward for your comments. --- <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:32 +01:00
adam closed this issue 2025-12-29 22:19:32 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#12084