VM not in a Site throws a AttributeError when assigning a VLAN to an interface #1927

Closed
opened 2025-12-29 17:20:38 +01:00 by adam · 0 comments
Owner

Originally created by @DanSheps on GitHub (Aug 9, 2018).

Environment

  • Python version: 3.4.8
  • NetBox version: 2.4.2

Steps to Reproduce

  • Create a VLAN Group not in a site, assign a VLAN
  • Create a VLAN Group in a site, assign a VLAN
  • Create a VM Cluster (TestClusterNotInSite) not in a site, assign a VM, assign an interface (InterfaceVMClusterNotInSite)
  • Create a VM Cluster (TestClusterInSite) in a site, assign a VM, assign an interface (InterfaceVMClusterInSite)

Expected Behavior

  • On InterfaceVMClusterInSite, convert to access/tagged/tagged all and add a VLAN. VLAN Form is presented Expected Behaviour

Observed Behavior

  • On InterfaceVMClusterNotInSite, convert to access/tagged/tagged all and add a VLAN. InterfaceAssignVLANsForm will throw a AttributeError on NoneType at line 1823
Originally created by @DanSheps on GitHub (Aug 9, 2018). ### Environment * Python version: 3.4.8 * NetBox version: 2.4.2 ### Steps to Reproduce * Create a VLAN Group not in a site, assign a VLAN * Create a VLAN Group in a site, assign a VLAN * Create a VM Cluster (TestClusterNotInSite) not in a site, assign a VM, assign an interface (InterfaceVMClusterNotInSite) * Create a VM Cluster (TestClusterInSite) in a site, assign a VM, assign an interface (InterfaceVMClusterInSite) ### Expected Behavior * On InterfaceVMClusterInSite, convert to access/tagged/tagged all and add a VLAN. VLAN Form is presented ***Expected Behaviour*** ### Observed Behavior * On InterfaceVMClusterNotInSite, convert to access/tagged/tagged all and add a VLAN. InterfaceAssignVLANsForm will throw a AttributeError on NoneType at line 1823
adam added the type: bugstatus: accepted labels 2025-12-29 17:20:38 +01:00
adam closed this issue 2025-12-29 17:20:39 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#1927