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

Fixes #11467: Correct count on interfaces tab when viewing a VC master device

This commit is contained in:
jeremystretch
2023-01-12 09:05:55 -05:00
parent 8d9e151030
commit 8565d175f9
2 changed files with 2 additions and 1 deletions

View File

@@ -1949,7 +1949,7 @@ class DeviceInterfacesView(DeviceComponentsView):
template_name = 'dcim/device/interfaces.html'
tab = ViewTab(
label=_('Interfaces'),
badge=lambda obj: obj.interfaces.count(),
badge=lambda obj: obj.vc_interfaces().count(),
permission='dcim.view_interface',
weight=520,
hide_if_empty=True