Slug for L2VPN has no unique constraint #6838

Closed
opened 2025-12-29 19:45:56 +01:00 by adam · 2 comments
Owner

Originally created by @v0tti on GitHub (Aug 19, 2022).

Originally assigned to: @arthanson on GitHub.

NetBox version

v3.3.0

Python version

3.9

Steps to Reproduce

  1. Create a L2VPN with name Test and slug test
  2. Create a L2VPN with name Test2 and slug test

Expected Behavior

I expect a warning to be displayed when trying to create the second L2VPN with the same slug as the one before. The slug should be an unique attribute. It is unique for other models i.e. Tenants.

Observed Behavior

The second L2VPN is created without a warning or an error. Two L2VPN with the same slug exist at the same time.

Originally created by @v0tti on GitHub (Aug 19, 2022). Originally assigned to: @arthanson on GitHub. ### NetBox version v3.3.0 ### Python version 3.9 ### Steps to Reproduce 1. Create a L2VPN with name `Test` and slug `test` 2. Create a L2VPN with name `Test2` and slug `test` ### Expected Behavior I expect a warning to be displayed when trying to create the second L2VPN with the same slug as the one before. The slug should be an unique attribute. It is unique for other models i.e. Tenants. ### Observed Behavior The second L2VPN is created without a warning or an error. Two L2VPN with the same slug exist at the same time.
adam added the type: bugstatus: accepted labels 2025-12-29 19:45:56 +01:00
adam closed this issue 2025-12-29 19:45:56 +01:00
Author
Owner

@jeremystretch commented on GitHub (Aug 19, 2022):

@DanSheps is this intentional or a bug?

@jeremystretch commented on GitHub (Aug 19, 2022): @DanSheps is this intentional or a bug?
Author
Owner

@DanSheps commented on GitHub (Aug 19, 2022):

This would be a bug. Slug should have been unique.

@DanSheps commented on GitHub (Aug 19, 2022): This would be a bug. Slug should have been unique.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#6838