@@ -10,6 +10,7 @@ class CableIndex(SearchIndex):
10
10
('description' , 500 ),
11
11
('comments' , 5000 ),
12
12
)
13
+ display_attrs = ('type' , 'status' , 'tenant' , 'label' , 'description' )
13
14
14
15
15
16
@register_search
@@ -21,6 +22,7 @@ class ConsolePortIndex(SearchIndex):
21
22
('description' , 500 ),
22
23
('speed' , 2000 ),
23
24
)
25
+ display_attrs = ('device' , 'label' , 'description' )
24
26
25
27
26
28
@register_search
@@ -32,6 +34,7 @@ class ConsoleServerPortIndex(SearchIndex):
32
34
('description' , 500 ),
33
35
('speed' , 2000 ),
34
36
)
37
+ display_attrs = ('device' , 'label' , 'description' )
35
38
36
39
37
40
@register_search
@@ -44,6 +47,9 @@ class DeviceIndex(SearchIndex):
44
47
('description' , 500 ),
45
48
('comments' , 5000 ),
46
49
)
50
+ display_attrs = (
51
+ 'site' , 'location' , 'rack' , 'device_type' , 'role' , 'tenant' , 'platform' , 'serial' , 'asset_tag' , 'description' ,
52
+ )
47
53
48
54
49
55
@register_search
@@ -54,6 +60,7 @@ class DeviceBayIndex(SearchIndex):
54
60
('label' , 200 ),
55
61
('description' , 500 ),
56
62
)
63
+ display_attrs = ('device' , 'label' , 'description' )
57
64
58
65
59
66
@register_search
@@ -64,6 +71,7 @@ class DeviceRoleIndex(SearchIndex):
64
71
('slug' , 110 ),
65
72
('description' , 500 ),
66
73
)
74
+ display_attrs = ('description' ,)
67
75
68
76
69
77
@register_search
@@ -75,6 +83,7 @@ class DeviceTypeIndex(SearchIndex):
75
83
('description' , 500 ),
76
84
('comments' , 5000 ),
77
85
)
86
+ display_attrs = ('manufacturer' , 'part_number' , 'description' )
78
87
79
88
80
89
@register_search
@@ -85,6 +94,7 @@ class FrontPortIndex(SearchIndex):
85
94
('label' , 200 ),
86
95
('description' , 500 ),
87
96
)
97
+ display_attrs = ('device' , 'label' , 'description' )
88
98
89
99
90
100
@register_search
@@ -99,6 +109,7 @@ class InterfaceIndex(SearchIndex):
99
109
('mtu' , 2000 ),
100
110
('speed' , 2000 ),
101
111
)
112
+ display_attrs = ('device' , 'label' , 'description' )
102
113
103
114
104
115
@register_search
@@ -112,6 +123,7 @@ class InventoryItemIndex(SearchIndex):
112
123
('description' , 500 ),
113
124
('part_id' , 2000 ),
114
125
)
126
+ display_attrs = ('device' , 'manufacturer' , 'part_id' , 'serial' , 'asset_tag' , 'description' )
115
127
116
128
117
129
@register_search
@@ -122,6 +134,7 @@ class LocationIndex(SearchIndex):
122
134
('slug' , 110 ),
123
135
('description' , 500 ),
124
136
)
137
+ display_attrs = ('site' , 'status' , 'tenant' , 'description' )
125
138
126
139
127
140
@register_search
@@ -132,6 +145,7 @@ class ManufacturerIndex(SearchIndex):
132
145
('slug' , 110 ),
133
146
('description' , 500 ),
134
147
)
148
+ display_attrs = ('description' ,)
135
149
136
150
137
151
@register_search
@@ -143,6 +157,7 @@ class ModuleIndex(SearchIndex):
143
157
('description' , 500 ),
144
158
('comments' , 5000 ),
145
159
)
160
+ display_attrs = ('device' , 'module_bay' , 'module_type' , 'status' , 'serial' , 'asset_tag' , 'description' )
146
161
147
162
148
163
@register_search
@@ -153,6 +168,7 @@ class ModuleBayIndex(SearchIndex):
153
168
('label' , 200 ),
154
169
('description' , 500 ),
155
170
)
171
+ display_attrs = ('device' , 'label' , 'position' , 'description' )
156
172
157
173
158
174
@register_search
@@ -164,6 +180,7 @@ class ModuleTypeIndex(SearchIndex):
164
180
('description' , 500 ),
165
181
('comments' , 5000 ),
166
182
)
183
+ display_attrs = ('manufacturer' , 'model' , 'part_number' , 'description' )
167
184
168
185
169
186
@register_search
@@ -174,6 +191,7 @@ class PlatformIndex(SearchIndex):
174
191
('slug' , 110 ),
175
192
('description' , 500 ),
176
193
)
194
+ display_attrs = ('manufacturer' , 'description' )
177
195
178
196
179
197
@register_search
@@ -184,6 +202,7 @@ class PowerFeedIndex(SearchIndex):
184
202
('description' , 500 ),
185
203
('comments' , 5000 ),
186
204
)
205
+ display_attrs = ('power_panel' , 'rack' , 'status' , 'description' )
187
206
188
207
189
208
@register_search
@@ -194,6 +213,7 @@ class PowerOutletIndex(SearchIndex):
194
213
('label' , 200 ),
195
214
('description' , 500 ),
196
215
)
216
+ display_attrs = ('device' , 'label' , 'description' )
197
217
198
218
199
219
@register_search
@@ -204,6 +224,7 @@ class PowerPanelIndex(SearchIndex):
204
224
('description' , 500 ),
205
225
('comments' , 5000 ),
206
226
)
227
+ display_attrs = ('site' , 'location' , 'description' )
207
228
208
229
209
230
@register_search
@@ -216,6 +237,7 @@ class PowerPortIndex(SearchIndex):
216
237
('maximum_draw' , 2000 ),
217
238
('allocated_draw' , 2000 ),
218
239
)
240
+ display_attrs = ('device' , 'label' , 'description' )
219
241
220
242
221
243
@register_search
@@ -229,6 +251,7 @@ class RackIndex(SearchIndex):
229
251
('description' , 500 ),
230
252
('comments' , 5000 ),
231
253
)
254
+ display_attrs = ('site' , 'location' , 'facility_id' , 'tenant' , 'status' , 'role' , 'description' )
232
255
233
256
234
257
@register_search
@@ -238,6 +261,7 @@ class RackReservationIndex(SearchIndex):
238
261
('description' , 500 ),
239
262
('comments' , 5000 ),
240
263
)
264
+ display_attrs = ('rack' , 'tenant' , 'user' , 'description' )
241
265
242
266
243
267
@register_search
@@ -248,6 +272,7 @@ class RackRoleIndex(SearchIndex):
248
272
('slug' , 110 ),
249
273
('description' , 500 ),
250
274
)
275
+ display_attrs = ('device' , 'label' , 'description' ,)
251
276
252
277
253
278
@register_search
@@ -258,6 +283,7 @@ class RearPortIndex(SearchIndex):
258
283
('label' , 200 ),
259
284
('description' , 500 ),
260
285
)
286
+ display_attrs = ('device' , 'label' , 'description' )
261
287
262
288
263
289
@register_search
@@ -268,6 +294,7 @@ class RegionIndex(SearchIndex):
268
294
('slug' , 110 ),
269
295
('description' , 500 ),
270
296
)
297
+ display_attrs = ('parent' , 'description' )
271
298
272
299
273
300
@register_search
@@ -282,6 +309,7 @@ class SiteIndex(SearchIndex):
282
309
('shipping_address' , 2000 ),
283
310
('comments' , 5000 ),
284
311
)
312
+ display_attrs = ('region' , 'group' , 'status' , 'description' )
285
313
286
314
287
315
@register_search
@@ -292,6 +320,7 @@ class SiteGroupIndex(SearchIndex):
292
320
('slug' , 110 ),
293
321
('description' , 500 ),
294
322
)
323
+ display_attrs = ('parent' , 'description' )
295
324
296
325
297
326
@register_search
@@ -303,6 +332,7 @@ class VirtualChassisIndex(SearchIndex):
303
332
('description' , 500 ),
304
333
('comments' , 5000 ),
305
334
)
335
+ display_attrs = ('master' , 'domain' , 'description' )
306
336
307
337
308
338
@register_search
@@ -314,3 +344,4 @@ class VirtualDeviceContextIndex(SearchIndex):
314
344
('description' , 500 ),
315
345
('comments' , 5000 ),
316
346
)
347
+ display_attrs = ('device' , 'status' , 'identifier' , 'description' )
0 commit comments