diff --git a/CHANGELOG.md b/CHANGELOG.md index 6bfcd84d8..f95bca363 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,7 @@ v2.5.4 (FUTURE) * [#2516](https://github.com/digitalocean/netbox/issues/2516) - Implemented Select2 for all Model backed selection fields * [#2590](https://github.com/digitalocean/netbox/issues/2590) - Implemented the color picker with Select2 to show colors in the background +* [#2733](https://github.com/digitalocean/netbox/issues/2733) - Enable bulk assignment of MAC addresses to interfaces * [#2735](https://github.com/digitalocean/netbox/issues/2735) - Implemented Select2 for all list filter form select elements * [#2753](https://github.com/digitalocean/netbox/issues/2753) - Implemented Select2 to replace most all instances of select fields in forms * [#2766](https://github.com/digitalocean/netbox/issues/2766) - Extend users admin table to include superuser and active fields diff --git a/netbox/dcim/forms.py b/netbox/dcim/forms.py index e570c331d..5233895d0 100644 --- a/netbox/dcim/forms.py +++ b/netbox/dcim/forms.py @@ -2212,6 +2212,10 @@ class InterfaceBulkEditForm(BootstrapMixin, AddRemoveTagsForm, BulkEditForm): label='Parent LAG', widget=StaticSelect2() ) + mac_address = forms.CharField( + required=False, + label='MAC Address' + ) mtu = forms.IntegerField( required=False, min_value=1, @@ -2235,7 +2239,7 @@ class InterfaceBulkEditForm(BootstrapMixin, AddRemoveTagsForm, BulkEditForm): class Meta: nullable_fields = [ - 'lag', 'mtu', 'description', 'mode', + 'lag', 'mac_address', 'mtu', 'description', 'mode', ] def __init__(self, *args, **kwargs):