1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

35 lines
706 B
Python
Raw Normal View History

from netbox.search import SearchIndex, register_search
2022-10-21 13:16:16 -04:00
from . import models
2022-10-21 13:16:16 -04:00
@register_search
class WirelessLANIndex(SearchIndex):
2022-10-21 13:16:16 -04:00
model = models.WirelessLAN
fields = (
('ssid', 100),
('description', 500),
('auth_psk', 2000),
2022-11-15 10:37:35 -05:00
('comments', 5000),
)
2022-10-21 13:16:16 -04:00
@register_search
class WirelessLANGroupIndex(SearchIndex):
model = models.WirelessLANGroup
fields = (
('name', 100),
('slug', 110),
('description', 500),
)
@register_search
class WirelessLinkIndex(SearchIndex):
2022-10-21 13:16:16 -04:00
model = models.WirelessLink
fields = (
('ssid', 100),
('description', 500),
('auth_psk', 2000),
2022-11-15 10:37:35 -05:00
('comments', 5000),
2022-10-21 13:16:16 -04:00
)