|
@@ -275,6 +275,9 @@ class IPRangeTable(TenancyColumnsMixin, NetBoxTable):
|
|
|
role = tables.Column(
|
|
role = tables.Column(
|
|
|
linkify=True
|
|
linkify=True
|
|
|
)
|
|
)
|
|
|
|
|
+ mark_utilized = columns.BooleanColumn(
|
|
|
|
|
+ verbose_name='Marked Utilized'
|
|
|
|
|
+ )
|
|
|
utilization = columns.UtilizationColumn(
|
|
utilization = columns.UtilizationColumn(
|
|
|
accessor='utilization',
|
|
accessor='utilization',
|
|
|
orderable=False
|
|
orderable=False
|
|
@@ -288,7 +291,7 @@ class IPRangeTable(TenancyColumnsMixin, NetBoxTable):
|
|
|
model = IPRange
|
|
model = IPRange
|
|
|
fields = (
|
|
fields = (
|
|
|
'pk', 'id', 'start_address', 'end_address', 'size', 'vrf', 'status', 'role', 'tenant', 'tenant_group',
|
|
'pk', 'id', 'start_address', 'end_address', 'size', 'vrf', 'status', 'role', 'tenant', 'tenant_group',
|
|
|
- 'utilization', 'description', 'comments', 'tags', 'created', 'last_updated',
|
|
|
|
|
|
|
+ 'mark_utilized', 'utilization', 'description', 'comments', 'tags', 'created', 'last_updated',
|
|
|
)
|
|
)
|
|
|
default_columns = (
|
|
default_columns = (
|
|
|
'pk', 'start_address', 'end_address', 'size', 'vrf', 'status', 'role', 'tenant', 'description',
|
|
'pk', 'start_address', 'end_address', 'size', 'vrf', 'status', 'role', 'tenant', 'description',
|