From 9e1edd55d61dfe346344556bf94a1cbe9af20d46 Mon Sep 17 00:00:00 2001 From: Jeremy Stretch Date: Fri, 24 Jul 2020 16:46:29 -0400 Subject: [PATCH] Closes #4898: Add MAC address search field to interfaces list --- docs/release-notes/version-2.8.md | 1 + netbox/dcim/forms.py | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/docs/release-notes/version-2.8.md b/docs/release-notes/version-2.8.md index f57684c24..2ce0f7371 100644 --- a/docs/release-notes/version-2.8.md +++ b/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 diff --git a/netbox/dcim/forms.py b/netbox/dcim/forms.py index 9d9d18baf..4de81ac54 100644 --- a/netbox/dcim/forms.py +++ b/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)