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
15.97k stars 2.56k forks source link

Add Location to Circuit Termination #9604

Open gjvc opened 2 years ago

gjvc commented 2 years ago

NetBox version

v3.2.5

Feature type

Data model extension

Proposed functionality

When editing a circuit termination, i can specify "Region", "Site group", and "Site", but not "Location".

I would like to specify the "Location" field (optionally) as part of the termination.

Use case

We have cross-connects between our cage and cages of other tenants in Equinix. Each tenant's cage is identified by placing the Equinix cage ID in the "Location" field, and this works well in the "Region / Site Group / Site / Location" containment hierarchy.

Right now I am having to specify the tenant's cage as the "Site", because "Location" is not available to me when editing the circuit termination, which makes for something of an impedance mismatch.

Database changes

add foreign key from CircuitTerminations to Location, (where null=True)

External dependencies

None

gjvc commented 2 years ago

basic diff (no migration or PR yet etc) here https://github.com/netbox-community/netbox/compare/develop...gjvc:9604-add-location-to-circuittermination for clarity / discussion.

github-actions[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. NetBox is governed by a small group of core maintainers which means not all opened issues may receive direct feedback. Do not attempt to circumvent this process by "bumping" the issue; doing so will result in its immediate closure and you may be barred from participating in any future discussions. Please see our contributing guide.

eronlloyd commented 2 years ago

As a service provider trying to get better PoP records for interconnects, etc., I think this could help. @gjvc do you think you can complete your code as a PR in the near future?

gjvc commented 2 years ago

@eronlloyd Certainly can! I will make a diff against develop this week and create a PR. Thank you for your consideration. :-)

gjvc commented 1 year ago

@jeremystretch would you be able to provide a milestone for this?

GoldyXXD commented 1 year ago

This would be very handy for us as well. For us Sites is more of a 'compound' large area. Whereas Locations is down to the building within that area. And multiple circuits could come into different buildings.

lorsung commented 2 months ago

I agree with @GoldyXXD, we have sites with multiple demarcs and this would be really helpful.