Просмотр исходного кода

Fixes #6339: Improve ordering of interfaces when viewing virtual chassis master

jeremystretch 4 лет назад
Родитель
Сommit
fb1173bc30
2 измененных файлов с 2 добавлено и 0 удалено
  1. 1 0
      docs/release-notes/version-2.11.md
  2. 1 0
      netbox/dcim/tables/devices.py

+ 1 - 0
docs/release-notes/version-2.11.md

@@ -14,6 +14,7 @@
 * [#6313](https://github.com/netbox-community/netbox/issues/6313) - Fix device type instance count under manufacturer view
 * [#6321](https://github.com/netbox-community/netbox/issues/6321) - Restore "add an IP" button under prefix IPs view
 * [#6333](https://github.com/netbox-community/netbox/issues/6333) - Fix filtering of circuit terminations by primary key
+* [#6339](https://github.com/netbox-community/netbox/issues/6339) - Improve ordering of interfaces when viewing virtual chassis master
 
 ---
 

+ 1 - 0
netbox/dcim/tables/devices.py

@@ -520,6 +520,7 @@ class DeviceInterfaceTable(InterfaceTable):
             'description', 'mark_connected', 'cable', 'cable_color', 'cable_peer', 'connection', 'tags', 'ip_addresses',
             'untagged_vlan', 'tagged_vlans', 'actions',
         )
+        order_by = ('name',)
         default_columns = (
             'pk', 'name', 'label', 'enabled', 'type', 'parent', 'lag', 'mtu', 'mode', 'description', 'ip_addresses',
             'cable', 'connection', 'actions',