xref: /aosp_15_r20/external/autotest/server/cros/network/attenuator_hosts.py (revision 9c5db1993ded3edbeafc8092d69fe5de2ee02df7)
1# Lint as: python2, python3
2# Copyright (c) 2019 The Chromium OS Authors. All rights reserved.
3# Use of this source code is governed by a BSD-style license that can be
4# found in the LICENSE file.
5
6""" Attenuator hostnames with fixed loss overhead on a given antenna line. """
7
8# This map represents the fixed loss overhead on a given antenna line.
9# The map maps from:
10#     attenuator hostname -> attenuator number -> frequency -> loss in dB.
11HOST_FIXED_ATTENUATIONS = {
12        'fake-atten-host': {
13                0: {2437: 0, 5220: 0, 5765: 0},
14                1: {2437: 0, 5220: 0, 5765: 0},
15                2: {2437: 0, 5220: 0, 5765: 0},
16                3: {2437: 0, 5220: 0, 5765: 0}},
17        'chromeos1-dev-host4-attenuator': {
18                0: {2437: 53, 5220: 59, 5765: 59},
19                1: {2437: 56, 5220: 56, 5765: 56},
20                2: {2437: 53, 5220: 59, 5765: 59},
21                3: {2437: 57, 5220: 56, 5765: 56}},
22        'chromeos1-dev-host15-attenuator': {
23                0: {2437: 32, 5220: 36, 5765: 38},
24                1: {2437: 35, 5220: 34, 5765: 36},
25                2: {2437: 32, 5220: 36, 5765: 38},
26                3: {2437: 35, 5220: 34, 5765: 36}},
27        'chromeos1-dev-host16-attenuator': {
28                0: {2437: 32, 5220: 37, 5765: 39},
29                1: {2437: 35, 5220: 34, 5765: 36},
30                2: {2437: 32, 5220: 37, 5765: 39},
31                3: {2437: 35, 5220: 34, 5765: 36}},
32        'chromeos1-dev-host17-attenuator': {
33                0: {2437: 33, 5220: 36, 5765: 38},
34                1: {2437: 35, 5220: 34, 5765: 36},
35                2: {2437: 33, 5220: 36, 5765: 38},
36                3: {2437: 35, 5220: 34, 5765: 36}},
37        'chromeos1-dev-host18-attenuator': {
38                0: {2437: 32, 5220: 36, 5765: 37},
39                1: {2437: 35, 5220: 34, 5765: 35},
40                2: {2437: 32, 5220: 36, 5765: 37},
41                3: {2437: 35, 5220: 34, 5765: 35}},
42        'chromeos1-dev-host19-attenuator': {
43                0: {2437: 52, 5220: 57, 5765: 60},
44                1: {2437: 55, 5220: 54, 5765: 56},
45                2: {2437: 52, 5220: 57, 5765: 60},
46                3: {2437: 55, 5220: 54, 5765: 55}},
47        'chromeos1-dev-host20-attenuator': {
48                0: {2437: 53, 5220: 57, 5765: 62},
49                1: {2437: 57, 5220: 55, 5765: 55},
50                2: {2437: 53, 5220: 57, 5765: 61},
51                3: {2437: 57, 5220: 55, 5765: 55}},
52        'chromeos1-test-host2-attenuator': {
53                0: {2437: 53, 5220: 59, 5765: 58},
54                1: {2437: 57, 5220: 57, 5765: 59},
55                2: {2437: 53, 5220: 59, 5765: 58},
56                3: {2437: 57, 5220: 57, 5765: 59}},
57        # Row 3 rack 7 is conductive grover setups
58        'chromeos15-row3-rack7-host1-attenuator': {
59                0: {2437: 53, 5220: 59, 5765: 59},
60                1: {2437: 56, 5220: 56, 5765: 58},
61                2: {2437: 53, 5220: 58, 5765: 60},
62                3: {2437: 56, 5220: 56, 5765: 57}},
63        'chromeos15-row3-rack7-host2-attenuator': {
64                0: {2437: 53, 5220: 59, 5765: 59},
65                1: {2437: 56, 5220: 57, 5765: 58},
66                2: {2437: 53, 5220: 58, 5765: 60},
67                3: {2437: 56, 5220: 57, 5765: 56}},
68        'chromeos15-row3-rack7-host3-attenuator': {
69                0: {2437: 53, 5220: 58, 5765: 60},
70                1: {2437: 56, 5220: 56, 5765: 56},
71                2: {2437: 53, 5220: 58, 5765: 60},
72                3: {2437: 56, 5220: 56, 5765: 56}},
73        'chromeos15-row3-rack7-host3-btattenuator': {
74                0: {2450: 55},
75                1: {2450: 55},
76                2: {2450: 55},
77                3: {2450: 55}},
78        'chromeos15-row3-rack7-host4-attenuator': {
79                0: {2437: 53, 5220: 59, 5765: 60},
80                1: {2437: 57, 5220: 56, 5765: 58},
81                2: {2437: 53, 5220: 59, 5765: 60},
82                3: {2437: 57, 5220: 56, 5765: 58}},
83        'chromeos15-row3-rack7-host5-attenuator': {
84                0: {2437: 53, 5220: 58, 5765: 60},
85                1: {2437: 55, 5220: 55, 5765: 54},
86                2: {2437: 52, 5220: 57, 5765: 60},
87                3: {2437: 55, 5220: 56, 5765: 54}},
88        'chromeos15-row3-rack7-host6-attenuator': {
89                0: {2437: 53, 5220: 58, 5765: 59},
90                1: {2437: 56, 5220: 57, 5765: 57},
91                2: {2437: 52, 5220: 58, 5765: 58},
92                3: {2437: 56, 5220: 56, 5765: 56}},
93        # Row 3 rack 8 is conductive grover setups
94        'chromeos15-row3-rack8-host1-attenuator': {
95                0: {2437: 53, 5220: 59, 5765: 58},
96                1: {2437: 56, 5220: 57, 5765: 59},
97                2: {2437: 52, 5220: 59, 5765: 58},
98                3: {2437: 56, 5220: 57, 5765: 59}},
99        'chromeos15-row3-rack8-host2-attenuator': {
100                0: {2437: 52, 5220: 59, 5765: 59},
101                1: {2437: 56, 5220: 56, 5765: 60},
102                2: {2437: 52, 5220: 58, 5765: 60},
103                3: {2437: 56, 5220: 56, 5765: 59}},
104        'chromeos15-row3-rack8-host3-attenuator': {
105                0: {2437: 52, 5220: 58, 5765: 59},
106                1: {2437: 56, 5220: 56, 5765: 60},
107                2: {2437: 52, 5220: 58, 5765: 59},
108                3: {2437: 56, 5220: 56, 5765: 57}},
109        'chromeos15-row3-rack8-host4-attenuator': {
110                0: {2437: 52, 5220: 58, 5765: 60},
111                1: {2437: 56, 5220: 56, 5765: 58},
112                2: {2437: 52, 5220: 58, 5765: 58},
113                3: {2437: 56, 5220: 56, 5765: 56}},
114        'chromeos15-row3-rack8-host5-attenuator': {
115                0: {2437: 53, 5220: 58, 5765: 58},
116                1: {2437: 56, 5220: 56, 5765: 57},
117                2: {2437: 53, 5220: 59, 5765: 58},
118                3: {2437: 56, 5220: 56, 5765: 60}},
119        'chromeos15-row3-rack8-host6-attenuator': {
120                0: {2437: 53, 5220: 59, 5765: 59},
121                1: {2437: 56, 5220: 56, 5765: 57},
122                2: {2437: 53, 5220: 60, 5765: 59},
123                3: {2437: 56, 5220: 58, 5765: 58}},
124        # Row 3 racks 9 to 14 are conductive grover setups
125        'chromeos15-row3-rack9-host1-attenuator': {
126                0: {2437: 53, 5220: 60, 5765: 59},
127                1: {2437: 57, 5220: 57, 5765: 58},
128                2: {2437: 53, 5220: 59, 5765: 60},
129                3: {2437: 57, 5220: 57, 5765: 60}},
130        'chromeos15-row3-rack9-host2-attenuator': {
131                0: {2437: 53, 5220: 59, 5765: 59},
132                1: {2437: 57, 5220: 58, 5765: 60},
133                2: {2437: 53, 5220: 58, 5765: 58},
134                3: {2437: 57, 5220: 58, 5765: 61}},
135        'chromeos15-row3-rack9-host3-attenuator': {
136                0: {2437: 53, 5220: 59, 5765: 59},
137                1: {2437: 57, 5220: 58, 5765: 59},
138                2: {2437: 53, 5220: 58, 5765: 59},
139                3: {2437: 57, 5220: 58, 5765: 60}},
140        'chromeos15-row3-rack9-host4-attenuator': {
141                0: {2437: 53, 5220: 59, 5765: 59},
142                1: {2437: 57, 5220: 58, 5765: 60},
143                2: {2437: 53, 5220: 58, 5765: 59},
144                3: {2437: 57, 5220: 57, 5765: 60}},
145        'chromeos15-row3-rack9-host5-attenuator': {
146                0: {2437: 53, 5220: 59, 5765: 59},
147                1: {2437: 57, 5220: 58, 5765: 59},
148                2: {2437: 53, 5220: 58, 5765: 60},
149                3: {2437: 57, 5220: 58, 5765: 60}},
150        'chromeos15-row3-rack9-host6-attenuator': {
151                0: {2437: 53, 5220: 59, 5765: 59},
152                1: {2437: 57, 5220: 57, 5765: 60},
153                2: {2437: 53, 5220: 59, 5765: 60},
154                3: {2437: 57, 5220: 58, 5765: 58}},
155        'chromeos15-row3-rack10-host1-attenuator': {
156                0: {2437: 52, 5220: 55, 5765: 56},
157                1: {2437: 55, 5220: 53, 5765: 57},
158                2: {2437: 52, 5220: 55, 5765: 57},
159                3: {2437: 55, 5220: 53, 5765: 57}},
160        'chromeos15-row3-rack10-host2-attenuator': {
161                0: {2437: 52, 5220: 56, 5765: 58},
162                1: {2437: 55, 5220: 54, 5765: 58},
163                2: {2437: 52, 5220: 56, 5765: 58},
164                3: {2437: 55, 5220: 54, 5765: 57}},
165        'chromeos15-row3-rack10-host3-attenuator': {
166                0: {2437: 53, 5220: 57, 5765: 57},
167                1: {2437: 56, 5220: 56, 5765: 57},
168                2: {2437: 53, 5220: 57, 5765: 59},
169                3: {2437: 56, 5220: 57, 5765: 58}},
170        'chromeos15-row3-rack10-host4-attenuator': {
171                0: {2437: 51, 5220: 55, 5765: 59},
172                1: {2437: 55, 5220: 53, 5765: 58},
173                2: {2437: 51, 5220: 54, 5765: 59},
174                3: {2437: 55, 5220: 53, 5765: 58}},
175        'chromeos15-row3-rack10-host5-attenuator': {
176                0: {2437: 51, 5220: 55, 5765: 60},
177                1: {2437: 55, 5220: 53, 5765: 58},
178                2: {2437: 51, 5220: 55, 5765: 60},
179                3: {2437: 55, 5220: 53, 5765: 58}},
180        'chromeos15-row3-rack10-host6-attenuator': {
181                0: {2437: 52, 5220: 55, 5765: 57},
182                1: {2437: 55, 5220: 54, 5765: 59},
183                2: {2437: 52, 5220: 55, 5765: 57},
184                3: {2437: 55, 5220: 54, 5765: 57}},
185        'chromeos15-row3-rack11-host1-attenuator': {
186                0: {2437: 53, 5220: 58, 5765: 57},
187                1: {2437: 56, 5220: 56, 5765: 58},
188                2: {2437: 53, 5220: 58, 5765: 57},
189                3: {2437: 56, 5220: 56, 5765: 57}},
190        'chromeos15-row3-rack11-host2-attenuator': {
191                0: {2437: 53, 5220: 58, 5765: 56},
192                1: {2437: 56, 5220: 56, 5765: 58},
193                2: {2437: 53, 5220: 59, 5765: 56},
194                3: {2437: 56, 5220: 56, 5765: 56}},
195        'chromeos15-row3-rack11-host3-attenuator': {
196                0: {2437: 52, 5220: 57, 5765: 59},
197                1: {2437: 55, 5220: 55, 5765: 54},
198                2: {2437: 52, 5220: 57, 5765: 59},
199                3: {2437: 55, 5220: 55, 5765: 54}},
200        'chromeos15-row3-rack11-host4-attenuator': {
201                0: {2437: 52, 5220: 58, 5765: 59},
202                1: {2437: 56, 5220: 56, 5765: 55},
203                2: {2437: 52, 5220: 57, 5765: 59},
204                3: {2437: 56, 5220: 56, 5765: 55}},
205        'chromeos15-row3-rack11-host5-attenuator': {
206                0: {2437: 53, 5220: 58, 5765: 58},
207                1: {2437: 55, 5220: 56, 5765: 55},
208                2: {2437: 53, 5220: 58, 5765: 59},
209                3: {2437: 56, 5220: 55, 5765: 55}},
210        'chromeos15-row3-rack11-host6-attenuator': {
211                0: {2437: 52, 5220: 58, 5765: 59},
212                1: {2437: 55, 5220: 55, 5765: 54},
213                2: {2437: 52, 5220: 57, 5765: 59},
214                3: {2437: 55, 5220: 55, 5765: 54}},
215        'chromeos15-row3-rack12-host1-attenuator': {
216                0: {2437: 53, 5220: 59, 5765: 58},
217                1: {2437: 55, 5220: 57, 5765: 55},
218                2: {2437: 57, 5220: 59, 5765: 58},
219                3: {2437: 55, 5220: 56, 5765: 55}},
220        'chromeos15-row3-rack12-host2-attenuator': {
221                0: {2437: 52, 5220: 59, 5765: 56},
222                1: {2437: 55, 5220: 56, 5765: 55},
223                2: {2437: 52, 5220: 59, 5765: 57},
224                3: {2437: 55, 5220: 56, 5765: 55}},
225        'chromeos15-row3-rack12-host3-attenuator': {
226                0: {2437: 52, 5220: 58, 5765: 57},
227                1: {2437: 55, 5220: 57, 5765: 55},
228                2: {2437: 52, 5220: 59, 5765: 59},
229                3: {2437: 55, 5220: 59, 5765: 55}},
230        'chromeos15-row3-rack12-host4-attenuator': {
231                0: {2437: 52, 5220: 58, 5765: 56},
232                1: {2437: 55, 5220: 56, 5765: 55},
233                2: {2437: 52, 5220: 58, 5765: 56},
234                3: {2437: 55, 5220: 56, 5765: 56}},
235        'chromeos15-row3-rack12-host5-attenuator': {
236                0: {2437: 53, 5220: 59, 5765: 58},
237                1: {2437: 55, 5220: 56, 5765: 55},
238                2: {2437: 52, 5220: 59, 5765: 59},
239                3: {2437: 55, 5220: 56, 5765: 55}},
240        'chromeos15-row3-rack12-host6-attenuator': {
241                0: {2437: 52, 5220: 59, 5765: 57},
242                1: {2437: 55, 5220: 56, 5765: 55},
243                2: {2437: 52, 5220: 58, 5765: 56},
244                3: {2437: 55, 5220: 56, 5765: 55}},
245        'chromeos15-row3-rack13-host1-attenuator': {
246                0: {2437: 59, 5220: 59, 5765: 59},
247                1: {2437: 52, 5220: 54, 5765: 54},
248                2: {2437: 59, 5220: 59, 5765: 59},
249                3: {2437: 52, 5220: 54, 5765: 54}},
250        'chromeos15-row3-rack13-host2-attenuator': {
251                0: {2437: 64, 5220: 62, 5765: 62},
252                1: {2437: 58, 5220: 57, 5765: 57},
253                2: {2437: 64, 5220: 62, 5765: 62},
254                3: {2437: 58, 5220: 57, 5765: 57}},
255        'chromeos15-row3-rack13-host3-attenuator': {
256                0: {2437: 60, 5220: 58, 5765: 58},
257                1: {2437: 52, 5220: 57, 5765: 57},
258                2: {2437: 60, 5220: 58, 5765: 58},
259                3: {2437: 52, 5220: 57, 5765: 57}},
260        'chromeos15-row3-rack13-host4-attenuator': {
261                0: {2437: 52, 5220: 58, 5765: 58},
262                1: {2437: 59, 5220: 60, 5765: 60},
263                2: {2437: 52, 5220: 58, 5765: 58},
264                3: {2437: 59, 5220: 60, 5765: 60}},
265        'chromeos15-row3-rack13-host5-attenuator': {
266                0: {2437: 58, 5220: 60, 5765: 60},
267                1: {2437: 53, 5220: 58, 5765: 58},
268                2: {2437: 58, 5220: 60, 5765: 60},
269                3: {2437: 53, 5220: 58, 5765: 58}},
270        'chromeos15-row3-rack13-host6-attenuator': {
271                0: {2437: 52, 5220: 56, 5765: 58},
272                1: {2437: 53, 5220: 56, 5765: 57},
273                2: {2437: 52, 5220: 56, 5765: 58},
274                3: {2437: 53, 5220: 56, 5765: 57}},
275        'chromeos15-row3-rack14-host1-attenuator': {
276                0: {2437: 53, 5220: 56, 5765: 56},
277                1: {2437: 52, 5220: 56, 5765: 56},
278                2: {2437: 53, 5220: 56, 5765: 56},
279                3: {2437: 52, 5220: 56, 5765: 56}},
280        'chromeos15-row3-rack14-host2-attenuator': {
281                0: {2437: 59, 5220: 59, 5765: 59},
282                1: {2437: 59, 5220: 60, 5765: 60},
283                2: {2437: 59, 5220: 59, 5765: 59},
284                3: {2437: 59, 5220: 60, 5765: 60}},
285        'chromeos15-row3-rack14-host3-attenuator': {
286                0: {2437: 52, 5220: 56, 5765: 56},
287                1: {2437: 64, 5220: 63, 5765: 63},
288                2: {2437: 52, 5220: 56, 5765: 56},
289                3: {2437: 64, 5220: 63, 5765: 63}},
290        'chromeos15-row3-rack14-host4-attenuator': {
291                0: {2437: 52, 5220: 55, 5765: 55},
292                1: {2437: 58, 5220: 58, 5765: 58},
293                2: {2437: 52, 5220: 55, 5765: 55},
294                3: {2437: 58, 5220: 58, 5765: 58}},
295        'chromeos15-row3-rack14-host5-attenuator': {
296                0: {2437: 57, 5220: 58, 5765: 58},
297                1: {2437: 52, 5220: 55, 5765: 55},
298                2: {2437: 57, 5220: 58, 5765: 58},
299                3: {2437: 52, 5220: 55, 5765: 55}},
300        'chromeos15-row3-rack14-host6-attenuator': {
301                0: {2437: 57, 5220: 57, 5765: 57},
302                1: {2437: 52, 5220: 55, 5765: 55},
303                2: {2437: 57, 5220: 57, 5765: 57},
304                3: {2437: 52, 5220: 55, 5765: 55}},
305}
306