Browse Source

Closes #4898: Add MAC address search field to interfaces list

Jeremy Stretch 5 năm trước cách đây
mục cha
commit
9e1edd55d6
2 tập tin đã thay đổi với 5 bổ sung0 xóa
  1. 1 0
      docs/release-notes/version-2.8.md
  2. 4 0
      netbox/dcim/forms.py

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

@@ -4,6 +4,7 @@
 
 ### Enhancements
 
+* [#4898](https://github.com/netbox-community/netbox/issues/4898) - Add MAC address search field to interfaces list
 * [#4899](https://github.com/netbox-community/netbox/issues/4899) - Add MAC address column to interfaces table
 
 ### Bug Fixes

+ 4 - 0
netbox/dcim/forms.py

@@ -2671,6 +2671,10 @@ class InterfaceFilterForm(DeviceComponentFilterForm):
             choices=BOOLEAN_WITH_BLANK_CHOICES
         )
     )
+    mac_address = forms.CharField(
+        required=False,
+        label='MAC address'
+    )
     tag = TagFilterField(model)