mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-08 16:48:16 -06:00
9627 numeric range field
This commit is contained in:
parent
8f8ba2c86c
commit
da8cf67d5e
@ -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
|
||||
|
@ -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')
|
||||
|
||||
|
||||
#
|
||||
|
@ -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' %}
|
||||
|
Loading…
Reference in New Issue
Block a user