Explorar o código

Add wwn CharField to InterfaceForm

kkthxbye-code %!s(int64=3) %!d(string=hai) anos
pai
achega
3dbc7bdd2c
Modificáronse 1 ficheiros con 6 adicións e 0 borrados
  1. 6 0
      netbox/dcim/forms/models.py

+ 6 - 0
netbox/dcim/forms/models.py

@@ -1331,6 +1331,12 @@ class InterfaceForm(InterfaceCommonForm, NetBoxModelForm):
         label='VRF'
     )
 
+    wwn = forms.CharField(
+        empty_value=None,
+        required=False,
+        label='WWN'
+    )
+
     fieldsets = (
         ('Interface', ('device', 'module', 'name', 'type', 'speed', 'duplex', 'label', 'description', 'tags')),
         ('Addressing', ('vrf', 'mac_address', 'wwn')),