Skip to content

Commit

Permalink
[Arista] Update platform.json for 7060CX-32S (#12783)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Staphylo authored and StormLiangMS committed Dec 10, 2022
1 parent 0883f6a commit 5cd134f
Show file tree
Hide file tree
Showing 3 changed files with 62 additions and 30 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"DCS-7050CX3-32S": {
"component": {
"Aboot()": {},
"Scd(addr=0000:00:18.7)": {},
"Scd(addr=0000:02:00.0)": {},
"Ucd90120A(addr=3-004e)": {},
"Ucd90120A(addr=16-004e)": {},
"CrowSysCpld(addr=2-0023)": {}
Expand Down
77 changes: 48 additions & 29 deletions device/arista/x86_64-arista_7060_cx32s/platform.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,23 @@
{
"chassis": {
"name": "DCS-7060CX-32S",
"components": [],
"components": [
{
"name": "Aboot()"
},
{
"name": "Scd(addr=0000:02:00.0)"
},
{
"name": "Ucd90120A(addr=4-004e)"
},
{
"name": "Ucd90120A(addr=8-004e)"
},
{
"name": "CrowSysCpld(addr=2-0023)"
}
],
"fans": [],
"fan_drawers": [
{
Expand Down Expand Up @@ -40,52 +56,55 @@
"psus": [
{
"name": "psu1",
"fans": []
"fans": [
{
"name": "psu1/1",
"speed": {
"controllable": false
}
}
]
},
{
"name": "psu2",
"fans": []
"fans": [
{
"name": "psu2/1",
"speed": {
"controllable": false
}
}
]
}
],
"thermals": [
{
"name": "Cpu temp sensor"
},
{
"name": "Cpu board temp sensor"
},
{
"name": "Back-panel temp sensor"
},
{
"name": "Board sensor"
},
{
"name": "Switch chip left sensor"
},
{
"name": "Switch chip right sensor"
},
{
"name": "Front-panel temp sensor"
"name": "Cpu temp sensor",
"controllable": false
},
{
"name": "Power supply 1 hotspot sensor"
"name": "Cpu board temp sensor",
"controllable": false
},
{
"name": "Power supply 1 inlet temp sensor"
"name": "Back-panel temp sensor",
"controllable": false
},
{
"name": "Power supply 1 exhaust temp sensor"
"name": "Board sensor",
"controllable": false
},
{
"name": "Power supply 2 hotspot sensor"
"name": "Switch chip left sensor",
"controllable": false
},
{
"name": "Power supply 2 inlet temp sensor"
"name": "Switch chip right sensor",
"controllable": false
},
{
"name": "Power supply 2 exhaust temp sensor"
"name": "Front-panel temp sensor",
"controllable": false
}
],
"sfps": [
Expand Down Expand Up @@ -821,4 +840,4 @@
}
}
}
}
}
13 changes: 13 additions & 0 deletions device/arista/x86_64-arista_7060_cx32s/platform_components.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"chassis": {
"DCS-7050CX3-32S": {
"component": {
"Aboot()": {},
"Scd(addr=0000:02:00.0)": {},
"Ucd90120A(addr=4-004e)": {},
"Ucd90120A(addr=8-004e)": {},
"CrowSysCpld(addr=2-0023)": {}
}
}
}
}

0 comments on commit 5cd134f

Please sign in to comment.