9627 numeric range field

This commit is contained in:
Arthur Hanson 2024-06-20 15:55:32 -07:00
parent 8f8ba2c86c
commit da8cf67d5e
3 changed files with 6 additions and 2 deletions

View File

@ -105,7 +105,8 @@ class VLANGroup(OrganizationalModel):
"""
Return the first available VLAN ID (1-4094) in the group.
"""
available_vids = self.get_available_vids()
available_vids = []
# available_vids = self.get_available_vids()
if available_vids:
return available_vids[0]
return None

View File

@ -94,7 +94,8 @@ class VLANGroupTable(NetBoxTable):
'pk', 'id', 'name', 'scope_type', 'scope', 'vlan_id_ranges', 'vlan_count', 'slug', 'description',
'tags', 'created', 'last_updated', 'actions', 'utilization',
)
default_columns = ('pk', 'name', 'scope_type', 'scope', 'vlan_count', 'utilization', 'description')
# default_columns = ('pk', 'name', 'scope_type', 'scope', 'vlan_count', 'utilization', 'description')
default_columns = ('pk', 'name', 'scope_type', 'scope', 'vlan_count', 'description')
#

View File

@ -42,10 +42,12 @@
<th scope="row">{% trans "Permitted VIDs" %}</th>
<td>{{ object.min_vid }} - {{ object.max_vid }}</td>
</tr>
{% comment %}
<tr>
<th scope="row">Utilization</th>
<td>{% utilization_graph object.utilization %}</td>
</tr>
{% endcomment %}
</table>
</div>
{% include 'inc/panels/tags.html' %}