netbox-community / netbox

The premier source of truth powering network automation. Open source under Apache 2. Try NetBox Cloud free: https://netboxlabs.com/free-netbox-cloud/
http://netboxlabs.com/oss/netbox/
Apache License 2.0
16.35k stars 2.6k forks source link

Allow Platforms with Same Name for Different Manufacturers #17413

Open mjoshionemind opened 2 months ago

mjoshionemind commented 2 months ago

NetBox version

v4.0.7

Feature type

Change to existing functionality

Proposed functionality

In the Platform model, the system raises a validation error when trying to create a Platform with the same name even if the associated Manufacturer is different. This is problematic because two manufacturers can produce platforms with the same name. The system should allow Platform records with the same name if they are associated with different Manufacturers.

Use case

The Platform name should only be enforced as unique within a Manufacturer. This allows two platforms with the same name but belonging to different manufacturers to be created.

Steps to Reproduce:

Create a Manufacturer (e.g., Manufacturer A). Create a Platform named "Test Platform" under Manufacturer A. Create another Manufacturer (e.g., Manufacturer B). Attempt to create another Platform named "Test Platform" under Manufacturer B.

Database changes

No response

External dependencies

No response

goteamkor commented 2 months ago

Cisco IOS and Apple IOS come to mind.

abhi1693 commented 2 months ago

I can implement this if selected. @arthanson