Inaccurate documentation - unique device names #4010

Closed
opened 2025-12-29 18:32:36 +01:00 by adam · 1 comment
Owner

Originally created by @spasarok on GitHub (Aug 22, 2020).

2116b928b6/netbox/dcim/models/devices.py (L457)

"Device names are not required, however if one is set it must be unique."

This seems inaccurate. Reviewing the code, it looks like a validate_unique method exists but is never actually called. Is this intentional? If not I can make a pr to update the documentation if you'd like.

Originally created by @spasarok on GitHub (Aug 22, 2020). https://github.com/netbox-community/netbox/blob/2116b928b683d61c42ba12aeba5d44b18bc24417/netbox/dcim/models/devices.py#L457 "Device names are not required, however if one is set it must be unique." This seems inaccurate. Reviewing the code, it looks like a `validate_unique` method exists but is never actually called. Is this intentional? If not I can make a pr to update the documentation if you'd like.
adam closed this issue 2025-12-29 18:32:36 +01:00
Author
Owner

@DanSheps commented on GitHub (Aug 23, 2020):

This issue is pending closure as it does not conform to one of the provided templates as required by the contributing guide. If you'd like to request that your issue be re-opened, please first update the content so that it matches the appropriate template (this may require rewriting your issue entirely).

@DanSheps commented on GitHub (Aug 23, 2020): This issue is pending closure as it does not conform to one of the [provided templates](https://github.com/netbox-community/netbox/issues/new/choose) as required by the [contributing guide](https://github.com/netbox-community/netbox/blob/master/CONTRIBUTING.md). If you'd like to request that your issue be re-opened, please first update the content so that it matches the appropriate template (this may require rewriting your issue entirely).
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#4010