Not able to put services with same port on same device but different interfaces/IPs #1026

Closed
opened 2025-12-29 16:28:03 +01:00 by adam · 1 comment
Owner

Originally created by @northalpha on GitHub (Jun 13, 2017).

Python 2.7.6
netbox version 2.0.6

Problem description: Lets assume i a have a server with multiple interfaces and multiple IPs. Now i want to bind a service like HTTP to vlan1 and vlan2.

Expected result: Service is possible to be added with the same port but on different interfaces / IPs

Actual result: Error message as below and not allowed

<class 'django.db.utils.IntegrityError'>
duplicate key value violates unique constraint "ipam_service_device_id_protocol_port_c33a12a0_uniq"
DETAIL:  Key (device_id, protocol, port)=(1, 6, 80) already exists.

interfaces
services1
service2

Originally created by @northalpha on GitHub (Jun 13, 2017). **Python 2.7.6 netbox version 2.0.6** **Problem description**: Lets assume i a have a server with multiple interfaces and multiple IPs. Now i want to bind a service like HTTP to vlan1 and vlan2. **Expected result**: Service is possible to be added with the same port but on different interfaces / IPs **Actual result**: Error message as below and not allowed ``` <class 'django.db.utils.IntegrityError'> duplicate key value violates unique constraint "ipam_service_device_id_protocol_port_c33a12a0_uniq" DETAIL: Key (device_id, protocol, port)=(1, 6, 80) already exists. ``` ![interfaces](https://user-images.githubusercontent.com/6721009/27086311-247f17e6-5052-11e7-8d57-2b05f22937eb.png) ![services1](https://user-images.githubusercontent.com/6721009/27086365-44a9d7f4-5052-11e7-8370-5d9e86118be2.png) ![service2](https://user-images.githubusercontent.com/6721009/27086313-2488ffc2-5052-11e7-8ed7-72a43796b3bf.png)
adam added the status: duplicate label 2025-12-29 16:28:03 +01:00
adam closed this issue 2025-12-29 16:28:03 +01:00
Author
Owner

@jeremystretch commented on GitHub (Jun 13, 2017):

Looks like a duplicate of #992. Please be sure to give that one a thumbs up to reflect your interest in this issue.

@jeremystretch commented on GitHub (Jun 13, 2017): Looks like a duplicate of #992. Please be sure to give that one a thumbs up to reflect your interest in this issue.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#1026