diff --git a/docs/release-notes/version-3.3.md b/docs/release-notes/version-3.3.md index 4dd717f9b..0572b7454 100644 --- a/docs/release-notes/version-3.3.md +++ b/docs/release-notes/version-3.3.md @@ -5,6 +5,7 @@ ### Enhancements * [#10748](https://github.com/netbox-community/netbox/issues/10748) - Add provider selection field for provider networks to circuit termination edit view +* [#11089](https://github.com/netbox-community/netbox/issues/11089) - Permit whitespace in MAC addresses * [#11119](https://github.com/netbox-community/netbox/issues/11119) - Enable filtering L2VPNs by slug ### Bug Fixes diff --git a/netbox/dcim/fields.py b/netbox/dcim/fields.py index d3afe5c08..4a2755be9 100644 --- a/netbox/dcim/fields.py +++ b/netbox/dcim/fields.py @@ -55,6 +55,8 @@ class MACAddressField(models.Field): def to_python(self, value): if value is None: return value + if type(value) is str: + value = value.replace(' ', '') try: return EUI(value, version=48, dialect=mac_unix_expanded_uppercase) except AddrFormatError: