1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Fixes #8844: Correct VLAN ID max value

This commit is contained in:
jeremystretch
2022-03-14 09:57:51 -04:00
parent faba6c9bdc
commit 1add5accf2
2 changed files with 2 additions and 2 deletions

View File

@ -334,7 +334,7 @@ class PrefixFilterSet(PrimaryModelFilterSet, TenancyFilterSet):
) )
vlan_vid = django_filters.NumberFilter( vlan_vid = django_filters.NumberFilter(
field_name='vlan__vid', field_name='vlan__vid',
label='VLAN number (1-4095)', label='VLAN number (1-4094)',
) )
role_id = django_filters.ModelMultipleChoiceFilter( role_id = django_filters.ModelMultipleChoiceFilter(
queryset=Role.objects.all(), queryset=Role.objects.all(),

View File

@ -375,7 +375,7 @@ class VLANCSVForm(CustomFieldModelCSVForm):
model = VLAN model = VLAN
fields = ('site', 'group', 'vid', 'name', 'tenant', 'status', 'role', 'description') fields = ('site', 'group', 'vid', 'name', 'tenant', 'status', 'role', 'description')
help_texts = { help_texts = {
'vid': 'Numeric VLAN ID (1-4095)', 'vid': 'Numeric VLAN ID (1-4094)',
'name': 'VLAN name', 'name': 'VLAN name',
} }