Skip to content

Commit f61aacb

Browse files
StaphyloStormLiangMS
authored andcommitted
[Arista] Update platform.json for 7060CX-32S (sonic-net#12783)
Why I did it Some sonic-mgmt platform_tests/api were failing on the 7060CX-32S How I did it Added the missing metadata in platform.json and platform_components.json This is purely test data and does not impact our API implementation. How to verify it Run platform_tests / api and expect 100% pass rate.
1 parent 41f405c commit f61aacb

File tree

3 files changed

+62
-30
lines changed

3 files changed

+62
-30
lines changed

device/arista/x86_64-arista_7050cx3_32s/platform_components.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"DCS-7050CX3-32S": {
44
"component": {
55
"Aboot()": {},
6-
"Scd(addr=0000:00:18.7)": {},
6+
"Scd(addr=0000:02:00.0)": {},
77
"Ucd90120A(addr=3-004e)": {},
88
"Ucd90120A(addr=16-004e)": {},
99
"CrowSysCpld(addr=2-0023)": {}

device/arista/x86_64-arista_7060_cx32s/platform.json

Lines changed: 48 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,23 @@
11
{
22
"chassis": {
33
"name": "DCS-7060CX-32S",
4-
"components": [],
4+
"components": [
5+
{
6+
"name": "Aboot()"
7+
},
8+
{
9+
"name": "Scd(addr=0000:02:00.0)"
10+
},
11+
{
12+
"name": "Ucd90120A(addr=4-004e)"
13+
},
14+
{
15+
"name": "Ucd90120A(addr=8-004e)"
16+
},
17+
{
18+
"name": "CrowSysCpld(addr=2-0023)"
19+
}
20+
],
521
"fans": [],
622
"fan_drawers": [
723
{
@@ -40,52 +56,55 @@
4056
"psus": [
4157
{
4258
"name": "psu1",
43-
"fans": []
59+
"fans": [
60+
{
61+
"name": "psu1/1",
62+
"speed": {
63+
"controllable": false
64+
}
65+
}
66+
]
4467
},
4568
{
4669
"name": "psu2",
47-
"fans": []
70+
"fans": [
71+
{
72+
"name": "psu2/1",
73+
"speed": {
74+
"controllable": false
75+
}
76+
}
77+
]
4878
}
4979
],
5080
"thermals": [
5181
{
52-
"name": "Cpu temp sensor"
53-
},
54-
{
55-
"name": "Cpu board temp sensor"
56-
},
57-
{
58-
"name": "Back-panel temp sensor"
59-
},
60-
{
61-
"name": "Board sensor"
62-
},
63-
{
64-
"name": "Switch chip left sensor"
65-
},
66-
{
67-
"name": "Switch chip right sensor"
68-
},
69-
{
70-
"name": "Front-panel temp sensor"
82+
"name": "Cpu temp sensor",
83+
"controllable": false
7184
},
7285
{
73-
"name": "Power supply 1 hotspot sensor"
86+
"name": "Cpu board temp sensor",
87+
"controllable": false
7488
},
7589
{
76-
"name": "Power supply 1 inlet temp sensor"
90+
"name": "Back-panel temp sensor",
91+
"controllable": false
7792
},
7893
{
79-
"name": "Power supply 1 exhaust temp sensor"
94+
"name": "Board sensor",
95+
"controllable": false
8096
},
8197
{
82-
"name": "Power supply 2 hotspot sensor"
98+
"name": "Switch chip left sensor",
99+
"controllable": false
83100
},
84101
{
85-
"name": "Power supply 2 inlet temp sensor"
102+
"name": "Switch chip right sensor",
103+
"controllable": false
86104
},
87105
{
88-
"name": "Power supply 2 exhaust temp sensor"
106+
"name": "Front-panel temp sensor",
107+
"controllable": false
89108
}
90109
],
91110
"sfps": [
@@ -821,4 +840,4 @@
821840
}
822841
}
823842
}
824-
}
843+
}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"chassis": {
3+
"DCS-7050CX3-32S": {
4+
"component": {
5+
"Aboot()": {},
6+
"Scd(addr=0000:02:00.0)": {},
7+
"Ucd90120A(addr=4-004e)": {},
8+
"Ucd90120A(addr=8-004e)": {},
9+
"CrowSysCpld(addr=2-0023)": {}
10+
}
11+
}
12+
}
13+
}

0 commit comments

Comments
 (0)