Преглед изворни кода

Fixes #6176: Correct position of MAC address field when creating VM interfaces

jeremystretch пре 4 година
родитељ
комит
c24cac9a44
2 измењених фајлова са 5 додато и 0 уклоњено
  1. 1 0
      docs/release-notes/version-2.11.md
  2. 4 0
      netbox/virtualization/forms.py

+ 1 - 0
docs/release-notes/version-2.11.md

@@ -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
 

+ 4 - 0
netbox/virtualization/forms.py

@@ -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)