pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/pheus/netbox-aci-plugin/commit/ca3434aa181bebea0f642d0bbfd3291f605c43ce

/> feat(search): Add NetBox search indexing for ACIPod · pheus/netbox-aci-plugin@ca3434a · GitHub
Skip to content

Commit ca3434a

Browse files
committed
feat(search): Add NetBox search indexing for ACIPod
Registers `ACIPodIndex` with NetBox search to enable indexing and searching of ACI Pod attributes. Includes fields such as name, alias, description, and tenant to support advanced search functionality.
1 parent d060175 commit ca3434a

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

netbox_aci_plugin/search.py

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
from netbox.search import SearchIndex, register_search
66

77
from .models.fabric.fabrics import ACIFabric
8+
from .models.fabric.pods import ACIPod
89
from .models.tenant.app_profiles import ACIAppProfile
910
from .models.tenant.bridge_domains import (
1011
ACIBridgeDomain,
@@ -54,6 +55,28 @@ class ACIFabricIndex(SearchIndex):
5455
)
5556

5657

58+
@register_search
59+
class ACIPodIndex(SearchIndex):
60+
"""NetBox search definition for the ACI Pod model."""
61+
62+
model = ACIPod
63+
64+
fields: tuple = (
65+
("name", 100),
66+
("name_alias", 300),
67+
("description", 500),
68+
("comments", 5000),
69+
)
70+
display_attrs: tuple = (
71+
"name",
72+
"name_alias",
73+
"description",
74+
"aci_fabric",
75+
"pod_id",
76+
"nb_tenant",
77+
)
78+
79+
5780
@register_search
5881
class ACITenantIndex(SearchIndex):
5982
"""NetBox search definition for the ACI Tenant model."""

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy