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

Add VMInterface list view

This commit is contained in:
Jeremy Stretch
2020-06-23 16:52:05 -04:00
parent e3820e93b7
commit fce19a363d
5 changed files with 12 additions and 3 deletions

View File

@@ -290,11 +290,11 @@ class VirtualMachineBulkDeleteView(BulkDeleteView):
#
class InterfaceListView(ObjectListView):
queryset = VMInterface.objects.prefetch_related('virtual_machine', 'virtual_machine__tenant', 'cable')
queryset = VMInterface.objects.prefetch_related('virtual_machine')
filterset = filters.VMInterfaceFilterSet
filterset_form = forms.VMInterfaceFilterForm
table = tables.VMInterfaceTable
action_buttons = ('import', 'export')
action_buttons = ('export',)
class InterfaceView(ObjectView):