Przeglądaj źródła

Add wwn CharField to InterfaceForm

kkthxbye-code 3 lat temu
rodzic
commit
3dbc7bdd2c
1 zmienionych plików z 6 dodań i 0 usunięć
  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')),