diff --git a/docs/release-notes/version-3.3.md b/docs/release-notes/version-3.3.md index b5555af19..5dd53b9d2 100644 --- a/docs/release-notes/version-3.3.md +++ b/docs/release-notes/version-3.3.md @@ -7,6 +7,7 @@ * [#10155](https://github.com/netbox-community/netbox/issues/10155) - Fix rear port display when editing front port template for module type * [#10156](https://github.com/netbox-community/netbox/issues/10156) - Avoid forcing SVG image links to open in a new window * [#10161](https://github.com/netbox-community/netbox/issues/10161) - Restore "set null" option for custom fields during bulk edit +* [#10177](https://github.com/netbox-community/netbox/issues/10177) - Correct display of custom fields when editing VM interfaces * [#10181](https://github.com/netbox-community/netbox/issues/10181) - Restore MultiPartParser (regression from #10031) --- diff --git a/netbox/templates/virtualization/vminterface_edit.html b/netbox/templates/virtualization/vminterface_edit.html index 316900865..efb138954 100644 --- a/netbox/templates/virtualization/vminterface_edit.html +++ b/netbox/templates/virtualization/vminterface_edit.html @@ -21,10 +21,22 @@ {% endif %} {% render_field form.name %} {% render_field form.description %} - {% render_field form.mac_address %} - {% render_field form.vrf %} - {% render_field form.mtu %} {% render_field form.tags %} + + +
+
+
Addressing
+
+ {% render_field form.vrf %} + {% render_field form.mac_address %} +
+ +
+
+
Operation
+
+ {% render_field form.mtu %} {% render_field form.enabled %}
diff --git a/netbox/virtualization/forms/models.py b/netbox/virtualization/forms/models.py index 723c19332..fca9c6b56 100644 --- a/netbox/virtualization/forms/models.py +++ b/netbox/virtualization/forms/models.py @@ -323,6 +323,14 @@ class VMInterfaceForm(InterfaceCommonForm, NetBoxModelForm): label='VRF' ) + fieldsets = ( + ('Interface', ('virtual_machine', 'name', 'description', 'tags')), + ('Addressing', ('vrf', 'mac_address')), + ('Operation', ('mtu', 'enabled')), + ('Related Interfaces', ('parent', 'bridge')), + ('802.1Q Switching', ('mode', 'vlan_group', 'untagged_vlan', 'tagged_vlans')), + ) + class Meta: model = VMInterface fields = [