Make site facility field unique #961

Closed
opened 2025-12-29 16:27:17 +01:00 by adam · 3 comments
Owner

Originally created by @InsaneSplash on GitHub (May 17, 2017).

When adding a facility ID to a Site, can it be checked for uniqueness?

Originally created by @InsaneSplash on GitHub (May 17, 2017). When adding a facility ID to a Site, can it be checked for uniqueness?
adam added the type: feature label 2025-12-29 16:27:17 +01:00
adam closed this issue 2025-12-29 16:27:17 +01:00
Author
Owner

@jeremystretch commented on GitHub (May 17, 2017):

This field was not originally intended to be unique. Leaving this one open for discussion.

@jeremystretch commented on GitHub (May 17, 2017): This field was not originally intended to be unique. Leaving this one open for discussion.
Author
Owner

@jeremystretch commented on GitHub (May 19, 2017):

I'm going to decline this feature request because IMO it's a perfectly valid use case to have two or more sites in the same facility. (Keep in mind that unlike the Rack model's facility_id field, this field is not used for the identification of an object.) For example, a company might have multiple physical presences in a datacenter and treat each as an independent site within e.g. Equinix DC6. Plus, changing a long established non-unique field to a unique field is bound to cause issues for some users.

@jeremystretch commented on GitHub (May 19, 2017): I'm going to decline this feature request because IMO it's a perfectly valid use case to have two or more sites in the same facility. (Keep in mind that unlike the Rack model's `facility_id` field, this field is not used for the identification of an object.) For example, a company might have multiple physical presences in a datacenter and treat each as an independent site within e.g. Equinix DC6. Plus, changing a long established non-unique field to a unique field is bound to cause issues for some users.
Author
Owner

@InsaneSplash commented on GitHub (May 19, 2017):

OK, thanks for the reply.

@InsaneSplash commented on GitHub (May 19, 2017): OK, thanks for the reply.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#961