Fixes #10177: Correct display of custom fields when editing VM interfaces

This commit is contained in:
jeremystretch
2022-08-29 15:10:14 -04:00
parent c2e5d1dd29
commit 8231a8b353
3 changed files with 24 additions and 3 deletions

View File

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