netbox
netbox copied to clipboard
add the ability to assign circuit group from the edit circuit page
NetBox version
4.1-beta1
Feature type
Data model extension
Proposed functionality
in the new beta, when editing a circuit, there is no drop down multi-select to allow you to assign circuit groups directly from the 'edit circuit' page. So far, the only way I've seen to assign a circuit to a circuit group is either from the circuit group assignments page, or from the circuit group page. Without this addition, there is also no way to determine what group(s) a circuit is in on the edit circuit page. You can only get that information when looking at the circuit from other views.
This would likely take the form of a new section in the edit circuit page for 'circuit group', which contains the same selections as the 'assign a circuit' page.
Use case
allow the ability to assign a circuit group directly from the 'edit' page of a circuit. This would make things consistent with other group assignment object types like contacts, tenants, clusters, etc.
Database changes
none
External dependencies
none.
This is because the assignment of a circuit to a group involves an intermediary model (CircuitGroupAssignment), which holds additional information, as opposed to a simple ForeignKey relation.
There is no pattern in NetBox currently for this sort of dual-edit functionality, and I'm not sure it's a path we want to head down. But if we do, it will likely be only after the implementation of #5858, which should introduce some new and necessary UI capabilities.
This is needed, it is almost impractical at lrger scale how it is done now where every circuit need to be placed into a group one by one manually instead of circuits bulk edit operation.