Skip to content

Commit

Permalink
Fixes #6176: Correct position of MAC address field when creating VM i…
Browse files Browse the repository at this point in the history
…nterfaces
  • Loading branch information
jeremystretch committed Apr 16, 2021
1 parent 2bc9730 commit c24cac9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/release-notes/version-2.11.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ A new provider network model has been introduced to represent the boundary of a
* [#6155](https://github.com/netbox-community/netbox/issues/6155) - Fix admin links for plugins, background tasks
* [#6171](https://github.com/netbox-community/netbox/issues/6171) - Fix display of horizontally-scrolling object lists
* [#6173](https://github.com/netbox-community/netbox/issues/6173) - Fix assigned device/VM count when bulk editing/deleting device roles
* [#6176](https://github.com/netbox-community/netbox/issues/6176) - Correct position of MAC address field when creating VM interfaces

### Other Changes

Expand Down
4 changes: 4 additions & 0 deletions netbox/virtualization/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -702,6 +702,10 @@ class VMInterfaceCreateForm(BootstrapMixin, InterfaceCommonForm):
queryset=Tag.objects.all(),
required=False
)
field_order = (
'virtual_machine', 'name_pattern', 'enabled', 'parent', 'mtu', 'mac_address', 'description', 'mode',
'untagged_vlan', 'tagged_vlans', 'tags'
)

def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
Expand Down

0 comments on commit c24cac9

Please sign in to comment.