Skip to content

Allow setting Virtual Chassis fields from Device create/update forms #9403

@sleepinggenius2

Description

@sleepinggenius2

NetBox version

v3.2.3

Feature type

New functionality

Proposed functionality

It would be really nice to be able set the vc* fields directly on the Device forms. As they are already part of the Device model, this should just require creating the 3 fields (Virtual Chassis, Position, Priority) in the corresponding forms. With the way that things are currently modeled, I'm not sure why this isn't already an option, so maybe there's some other technical limitation that I'm missing.

Optionally, using any Site, Location, or Rack fields that are set to filter the list of Virtual Chassis to choose from, kind of like how the Add Member form works, might be nice.

If possible, adding a field to allow setting the device as master would also be helpful. I understand if this might cause validation issues by the device not being a member of the Virtual Chassis first.

Use case

When adding a switch to a stack, today you have to add the Device, then go to the Virtual Chassis, add a new member, then search for the switch before it can be added. This would greatly simplify that process and I think could also help to resolve #8648.

You could put something like {member} in the Module Bay Position field of a Device Type or in an Interface Name, which would then be replaced by the Position within the selected Virtual Chassis, just like is done for Modules today. That way, the Module Bay Position could become something like 1/1 instead of just 1 and you could replace the Module templates with something like Gi{module}/1 instead of Gi1/{module}/1. Or, if you want to keep it as 1, then your template could be Gi{member}/{module}/1. I'm assuming that would get around the issue of components being created before Virtual Chassis assignment.

Database changes

None

External dependencies

None

Metadata

Metadata

Assignees

Labels

status: acceptedThis issue has been accepted for implementationtype: featureIntroduction of new functionality to the application

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions