mirror of
https://github.com/netbox-community/netbox.git
synced 2025-12-19 20:02:22 -06:00
Add bridge field to Interface, VMInterface models
This commit is contained in:
@@ -264,6 +264,11 @@ class VMInterfaceFilterSet(PrimaryModelFilterSet):
|
||||
queryset=VMInterface.objects.all(),
|
||||
label='Parent interface (ID)',
|
||||
)
|
||||
bridge_id = django_filters.ModelMultipleChoiceFilter(
|
||||
field_name='bridge',
|
||||
queryset=VMInterface.objects.all(),
|
||||
label='Bridged interface (ID)',
|
||||
)
|
||||
mac_address = MultiValueMACAddressFilter(
|
||||
label='MAC address',
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user