Closes #7561: Add a utilization column to the IP ranges table

This commit is contained in:
jeremystretch
2021-10-19 15:51:39 -04:00
parent c55a6e322c
commit 17ff387239
2 changed files with 9 additions and 0 deletions

View File

@@ -260,11 +260,16 @@ class IPRangeTable(BaseTable):
linkify=True
)
tenant = TenantColumn()
utilization = UtilizationColumn(
accessor='utilization',
orderable=False
)
class Meta(BaseTable.Meta):
model = IPRange
fields = (
'pk', 'start_address', 'end_address', 'size', 'vrf', 'status', 'role', 'tenant', 'description',
'utilization',
)
default_columns = (
'pk', 'start_address', 'end_address', 'size', 'vrf', 'status', 'role', 'tenant', 'description',