assign-vlans view throws error on virtual machines where the cluster has no site #2214
Labels
status: accepted
This issue has been accepted for implementation
type: bug
A confirmed report of unexpected behavior in the application
Issue type
[ ] Feature request
[X] Bug report
[ ] Documentation
[ ] Housekeeping
Environment
Description
When trying to assign a vlan to an interface of a virtual machine where the cluster has no site set, a server error happens:
The url is
netbox/dcim/interfaces/447/assign-vlans/?return_url=/netbox/virtualization/vm-interfaces/447/edit/
The problem seems to be this line: https://github.com/digitalocean/netbox/blob/97863115ba2f8e889b8741099c5b1a6eb0a2051b/netbox/dcim/forms.py#L1784
Here is the stack trace:
The text was updated successfully, but these errors were encountered: