From da8cf67d5e4551f61aee5976c3da4040a779676e Mon Sep 17 00:00:00 2001 From: Arthur Hanson Date: Thu, 20 Jun 2024 15:55:32 -0700 Subject: [PATCH] 9627 numeric range field --- netbox/ipam/models/vlans.py | 3 ++- netbox/ipam/tables/vlans.py | 3 ++- netbox/templates/ipam/vlangroup.html | 2 ++ 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/netbox/ipam/models/vlans.py b/netbox/ipam/models/vlans.py index bfd505fef..cb3dcab69 100644 --- a/netbox/ipam/models/vlans.py +++ b/netbox/ipam/models/vlans.py @@ -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 diff --git a/netbox/ipam/tables/vlans.py b/netbox/ipam/tables/vlans.py index 613089cdf..a1250fed3 100644 --- a/netbox/ipam/tables/vlans.py +++ b/netbox/ipam/tables/vlans.py @@ -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') # diff --git a/netbox/templates/ipam/vlangroup.html b/netbox/templates/ipam/vlangroup.html index cc8c790a9..813032b2d 100644 --- a/netbox/templates/ipam/vlangroup.html +++ b/netbox/templates/ipam/vlangroup.html @@ -42,10 +42,12 @@ {% trans "Permitted VIDs" %} {{ object.min_vid }} - {{ object.max_vid }} + {% comment %} Utilization {% utilization_graph object.utilization %} + {% endcomment %} {% include 'inc/panels/tags.html' %}