-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Description
NetBox version
v3.3.1
Python version
3.8
Steps to Reproduce
When adding an interface to a Virtual Machine, the Virtual Machine selection drop down does not appear to register a change.
These are the steps I followed, there may be other permutations.
- From the Virtual Machine list, Select a VM.
- Click '+ Add Interfaces' button.
- In the Virtual Machine dropdown list, select a different VM from the one pre-populated.
- Enter a name in the 'name' field.
- Click Create.
- The created interface will be appear on the virtual machine that the form was instantiated from.
Expected Behavior
If it's possible to change the virtual machine in the field, I would expect the interface to be created on VM selected in the 'Virtual Machine' field and not the VM from where the Add an interface was instantiated.
The process I followed was to create several VMs, via clone. The interface doesn't get cloned so I then went to create multiple interfaces using the "Create & Add Another" selecting another VM in the Add new interface form, without having to exit the form, select the next VM and then add an interface on the next VM.
Observed Behavior
After creating the interface on a Virtual Machine, using the 'create and add another' selecting a different VM in the drop down, and entering the same interface name, a notification dialog popped up 'Name: this field is required'. I thought originally that the name entry was not being accepted, but then realised it was the Virtual Machine selection that was not functioning. The warning message was confusing, and I would have expected either the selected virtual machine to be recognised, an error similar to "Name: duplicate interface name" , rather than 'Name: this field is required' as the name field was populated.