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

Fixes #11154: Index VM interface MAC address and MTU for global search

jeremystretch 3 лет назад
Родитель
Сommit
8809fc949b
2 измененных файлов с 3 добавлено и 0 удалено
  1. 1 0
      docs/release-notes/version-3.4.md
  2. 2 0
      netbox/virtualization/search.py

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

@@ -23,6 +23,7 @@
 * [#10984](https://github.com/netbox-community/netbox/issues/10984) - Fix navigation menu expansion for plugin menus comprising multiple words
 * [#10984](https://github.com/netbox-community/netbox/issues/10984) - Fix navigation menu expansion for plugin menus comprising multiple words
 * [#11000](https://github.com/netbox-community/netbox/issues/11000) - Improve validation of YAML-formatted import data
 * [#11000](https://github.com/netbox-community/netbox/issues/11000) - Improve validation of YAML-formatted import data
 * [#11046](https://github.com/netbox-community/netbox/issues/11046) - Fix exception when caching very large field values for search
 * [#11046](https://github.com/netbox-community/netbox/issues/11046) - Fix exception when caching very large field values for search
+* [#11154](https://github.com/netbox-community/netbox/issues/11154) - Index VM interface MAC address and MTU for global search
 
 
 ## v3.4-beta1 (2022-11-16)
 ## v3.4-beta1 (2022-11-16)
 
 

+ 2 - 0
netbox/virtualization/search.py

@@ -47,5 +47,7 @@ class VMInterfaceIndex(SearchIndex):
     model = models.VMInterface
     model = models.VMInterface
     fields = (
     fields = (
         ('name', 100),
         ('name', 100),
+        ('mac_address', 300),
         ('description', 500),
         ('description', 500),
+        ('mtu', 2000),
     )
     )