|
|
@@ -6,7 +6,7 @@ from dcim.constants import *
|
|
|
from dcim.models import *
|
|
|
from extras.forms import LocalConfigContextFilterForm
|
|
|
from extras.models import ConfigTemplate
|
|
|
-from ipam.models import ASN, VRF
|
|
|
+from ipam.models import ASN, VRF, VLANTranslationPolicy
|
|
|
from netbox.choices import *
|
|
|
from netbox.forms import NetBoxModelFilterSetForm
|
|
|
from tenancy.forms import ContactModelFilterForm, TenancyFilterForm
|
|
|
@@ -1332,7 +1332,7 @@ class InterfaceFilterForm(PathEndpointFilterForm, DeviceComponentFilterForm):
|
|
|
FieldSet('name', 'label', 'kind', 'type', 'speed', 'duplex', 'enabled', 'mgmt_only', name=_('Attributes')),
|
|
|
FieldSet('vrf_id', 'l2vpn_id', 'mac_address', 'wwn', name=_('Addressing')),
|
|
|
FieldSet('poe_mode', 'poe_type', name=_('PoE')),
|
|
|
- FieldSet('mode', name=_('802.1Q Switching')),
|
|
|
+ FieldSet('mode', 'vlan_translation_policy_id', name=_('802.1Q Switching')),
|
|
|
FieldSet('rf_role', 'rf_channel', 'rf_channel_width', 'tx_power', name=_('Wireless')),
|
|
|
FieldSet('region_id', 'site_group_id', 'site_id', 'location_id', 'rack_id', name=_('Location')),
|
|
|
FieldSet(
|
|
|
@@ -1409,6 +1409,11 @@ class InterfaceFilterForm(PathEndpointFilterForm, DeviceComponentFilterForm):
|
|
|
required=False,
|
|
|
label=_('802.1Q mode')
|
|
|
)
|
|
|
+ vlan_translation_policy_id = DynamicModelMultipleChoiceField(
|
|
|
+ queryset=VLANTranslationPolicy.objects.all(),
|
|
|
+ required=False,
|
|
|
+ label=_('VLAN Translation Policy')
|
|
|
+ )
|
|
|
rf_role = forms.MultipleChoiceField(
|
|
|
choices=WirelessRoleChoices,
|
|
|
required=False,
|