From 8809fc949b6fc7296bf5f0d63fb8d61c9a887578 Mon Sep 17 00:00:00 2001 From: jeremystretch Date: Mon, 12 Dec 2022 10:43:48 -0500 Subject: [PATCH] Fixes #11154: Index VM interface MAC address and MTU for global search --- docs/release-notes/version-3.4.md | 1 + netbox/virtualization/search.py | 2 ++ 2 files changed, 3 insertions(+) diff --git a/docs/release-notes/version-3.4.md b/docs/release-notes/version-3.4.md index 9c172da7f..9cf32e1cb 100644 --- a/docs/release-notes/version-3.4.md +++ b/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 * [#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 +* [#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) diff --git a/netbox/virtualization/search.py b/netbox/virtualization/search.py index aef3425f0..643a9f6de 100644 --- a/netbox/virtualization/search.py +++ b/netbox/virtualization/search.py @@ -47,5 +47,7 @@ class VMInterfaceIndex(SearchIndex): model = models.VMInterface fields = ( ('name', 100), + ('mac_address', 300), ('description', 500), + ('mtu', 2000), )