Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add multitenancy support #16

Closed
jeremystretch opened this issue Jun 23, 2016 · 2 comments
Closed

Add multitenancy support #16

jeremystretch opened this issue Jun 23, 2016 · 2 comments
Milestone

Comments

@jeremystretch
Copy link
Member

Many entities which might use NetBox, particularly service providers, manage networks for many different customers. Currently, NetBox does not have any concept of distinct customers or organizations. This makes it very difficult to track which devices and other resources belong to which customer.

It should be fairly easy to extend NetBox's schema to include a Tenant object. Devices, Prefixes, and other objects could then optionally be associated with a Tenant via a ForeignKey field to track multitenant installations.

@jeremystretch
Copy link
Member Author

Just merged #393, which implements tenancy assignment for:

  • Sites
  • Racks
  • Devices
  • VRFs
  • VLANs
  • Circuits

I have intentionally omitted prefixes and IP addresses, as adding explicit tenant assignment for these objects could be tedious and confusing. For example if I assign a VRF to each of my customers, I don't want to also assign each prefix and IP address within those VRFs to customers. That would be redundant and error-prone.

That said, it would be great if prefixes and IPs could inherit the tenant from their parent VRF (if the VRF has been assigned a tenant). More research is needed to determine whether the overhead required to support this is acceptable.

@jeremystretch
Copy link
Member Author

Extended tenancy support to Prefixes and IPAddresses in e6c06b3. The inheritance seems to work well but needs additional testing.

@lock lock bot locked as resolved and limited conversation to collaborators Jan 19, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant