Closes #2733: Enable bulk assignment of MAC addresses to interfaces

This commit is contained in:
Jeremy Stretch 2019-01-17 16:20:14 -05:00
parent 92a2f529e3
commit c69fad7429
2 changed files with 6 additions and 1 deletions

View File

@ -4,6 +4,7 @@ v2.5.4 (FUTURE)
* [#2516](https://github.com/digitalocean/netbox/issues/2516) - Implemented Select2 for all Model backed selection fields * [#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 * [#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 * [#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 * [#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 * [#2766](https://github.com/digitalocean/netbox/issues/2766) - Extend users admin table to include superuser and active fields

View File

@ -2212,6 +2212,10 @@ class InterfaceBulkEditForm(BootstrapMixin, AddRemoveTagsForm, BulkEditForm):
label='Parent LAG', label='Parent LAG',
widget=StaticSelect2() widget=StaticSelect2()
) )
mac_address = forms.CharField(
required=False,
label='MAC Address'
)
mtu = forms.IntegerField( mtu = forms.IntegerField(
required=False, required=False,
min_value=1, min_value=1,
@ -2235,7 +2239,7 @@ class InterfaceBulkEditForm(BootstrapMixin, AddRemoveTagsForm, BulkEditForm):
class Meta: class Meta:
nullable_fields = [ nullable_fields = [
'lag', 'mtu', 'description', 'mode', 'lag', 'mac_address', 'mtu', 'description', 'mode',
] ]
def __init__(self, *args, **kwargs): def __init__(self, *args, **kwargs):