Increase maximum value for VC position on the Device model #15764
Labels
status: accepted
This issue has been accepted for implementation
type: feature
Introduction of new functionality to the application
Milestone
NetBox version
v3.7.5
Feature type
Change to existing functionality
Proposed functionality
The VC position on the Device model is currently limited to 255. My proposal would be to increase this to at least 65534, but it may need to be higher in other environments.
Use case
I recently ran into an issue within our network due to the 255 limit on VC position. Cisco ASR9K devices allow specifying a satellite ID up to 65534, which seems like the exact use case for the VC model, a master chassis and a subtended one, but that means we want to set position 0 for the main router and use the satellite's ID for it's position in the VC, as that is used in provisioning and in its port naming. I was able to change the maximum value in the model within our NetBox instance and it didn't seem to cause any issues for a value < 32767, but 65534 would overflow a small int, as the type is currently configured, due to its signed nature.
Example from the router configuration:
Database changes
The
vc_position
field on the Device model would need to be changed from a smallint to an integer type to support a value of 65534.External dependencies
None
The text was updated successfully, but these errors were encountered: