-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
VlanGroup - ArrayField rather than a start/end range #9627
Comments
#9083 proposed something similar, but the transition to a single ArrayField seems more efficient. |
Need to put a bit more thought into how best to implement this. We do something similar with rack reservation units, however in that case we're actually storing a discrete integer for each rack unit to which the reservation applies. This doesn't scale well to ~4K VLAN IDs. We may be able to leverage an array of PostgreSQL range fields, but further research is needed. While I would have liked to pursue this in v3.3, we're running a bit behind with this release as it is. |
Hello Jeremy,
I would say that the vlan range can be a separate model itself where additional information can also be added to this object, like comments, or even the change log to monitor changes in the range definition. |
Is it possible to take this up in v3.5? |
It might be possible to employ an ArrayField of RangeFields. |
Just noting for posterity: PostgreSQL 14 introduces native multirange types, which would be ideal. However, we would need to drop support for PostgreSQL 12 and 13 to utilize these. Additionally, these types appear unlikely to be supported by Django, so we would need to devise our own implementation for the ORM. |
NetBox version
v3.2.5
Feature type
Change to existing functionality
Proposed functionality
a VLAN Group has the option to limit the vlans that can be used in that group.
This FR is to make the vlan-member a comma-separated value and allow more that one range or separate vlans in a vlan group.
Use case
We have use cases where one group consists of 2 different ranges (1000-1099, 2500-2599 for example).
Currently we have to create a second group, or extend the vlangroup with vlans that should not be used in that group.
Database changes
External dependencies
No response
The text was updated successfully, but these errors were encountered: