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

Add device types and power feeds to home page

This commit is contained in:
Jeremy Stretch
2019-04-19 14:27:19 -04:00
parent 30da4594cd
commit 5303d2c16d
2 changed files with 46 additions and 17 deletions

View File

@ -193,11 +193,13 @@ class HomeView(View):
# DCIM
'rack_count': Rack.objects.count(),
'devicetype_count': DeviceType.objects.count(),
'device_count': Device.objects.count(),
'interface_connections_count': connected_interfaces.count(),
'cable_count': cables.count(),
'console_connections_count': connected_consoleports.count(),
'power_connections_count': connected_powerports.count(),
'powerfeed_count': PowerFeed.objects.count(),
# IPAM
'vrf_count': VRF.objects.count(),