diff --git a/docs/release-notes/version-2.11.md b/docs/release-notes/version-2.11.md index 1dae5e777..4b5ababbc 100644 --- a/docs/release-notes/version-2.11.md +++ b/docs/release-notes/version-2.11.md @@ -9,6 +9,7 @@ ### Bug Fixes +* [#6240](https://github.com/netbox-community/netbox/issues/6240) - Fix display of available VLAN ranges under VLAN group view * [#6308](https://github.com/netbox-community/netbox/issues/6308) - Fix linking of available VLANs in VLAN group view * [#6309](https://github.com/netbox-community/netbox/issues/6309) - Restrict parent VM interface assignment to the parent VM * [#6313](https://github.com/netbox-community/netbox/issues/6313) - Fix device type instance count under manufacturer view diff --git a/netbox/ipam/views.py b/netbox/ipam/views.py index 95aa8c3c1..168933af7 100644 --- a/netbox/ipam/views.py +++ b/netbox/ipam/views.py @@ -673,7 +673,7 @@ class VLANGroupView(generic.ObjectView): def get_extra_context(self, request, instance): vlans = VLAN.objects.restrict(request.user, 'view').filter(group=instance).prefetch_related( Prefetch('prefixes', queryset=Prefix.objects.restrict(request.user)) - ) + ).order_by('vid') vlans_count = vlans.count() vlans = add_available_vlans(instance, vlans)