mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-09 00:58: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.
|
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:
|
if available_vids:
|
||||||
return available_vids[0]
|
return available_vids[0]
|
||||||
return None
|
return None
|
||||||
|
@ -94,7 +94,8 @@ class VLANGroupTable(NetBoxTable):
|
|||||||
'pk', 'id', 'name', 'scope_type', 'scope', 'vlan_id_ranges', 'vlan_count', 'slug', 'description',
|
'pk', 'id', 'name', 'scope_type', 'scope', 'vlan_id_ranges', 'vlan_count', 'slug', 'description',
|
||||||
'tags', 'created', 'last_updated', 'actions', 'utilization',
|
'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>
|
<th scope="row">{% trans "Permitted VIDs" %}</th>
|
||||||
<td>{{ object.min_vid }} - {{ object.max_vid }}</td>
|
<td>{{ object.min_vid }} - {{ object.max_vid }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
{% comment %}
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="row">Utilization</th>
|
<th scope="row">Utilization</th>
|
||||||
<td>{% utilization_graph object.utilization %}</td>
|
<td>{% utilization_graph object.utilization %}</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
{% endcomment %}
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
{% include 'inc/panels/tags.html' %}
|
{% include 'inc/panels/tags.html' %}
|
||||||
|
Loading…
Reference in New Issue
Block a user