Skip to content

Commit

Permalink
[Arista] fix platform.json for a few devices (#15308)
Browse files Browse the repository at this point in the history
Why I did it
sonic-mgmt is failing tests due to invalid test data in platform.json
Fwutil is upset the chassis name in the platform_component.json of the 7060CX-32S

How I did it
Fixed the aforementioned issues
  • Loading branch information
Staphylo authored and mssonicbld committed Jun 16, 2023
1 parent 89b7f46 commit 3396cca
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 44 deletions.
42 changes: 24 additions & 18 deletions device/arista/x86_64-arista_7050_qx32/platform.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,37 +53,43 @@
"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": "Board sensor"
},
{
"name": "Front-panel temp sensor"
},
{
"name": "Rear temp sensor"
},
{
"name": "Power supply 1 inlet temp sensor"
"name": "Cpu temp sensor",
"controllable": false
},
{
"name": "Power supply 1 internal sensor"
"name": "Board sensor",
"controllable": false
},
{
"name": "Power supply 2 inlet temp sensor"
"name": "Front-panel temp sensor",
"controllable": false
},
{
"name": "Power supply 2 internal sensor"
"name": "Rear temp sensor",
"controllable": false
}
],
"sfps": [
Expand Down
51 changes: 26 additions & 25 deletions device/arista/x86_64-arista_7050_qx32s/platform.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,46 +40,47 @@
"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": "Front-panel temp sensor"
},
{
"name": "Power supply 1 hotspot sensor"
},
{
"name": "Power supply 1 inlet temp sensor"
"name": "Cpu temp sensor",
"controllable": false
},
{
"name": "Power supply 1 exhaust temp sensor"
"name": "Cpu board temp sensor",
"controllable": false
},
{
"name": "Power supply 2 hotspot sensor"
"name": "Back-panel temp sensor",
"controllable": false
},
{
"name": "Power supply 2 inlet temp sensor"
"name": "Board Sensor",
"controllable": false
},
{
"name": "Power supply 2 exhaust temp sensor"
"name": "Front-panel temp sensor",
"controllable": false
}
],
"sfps": [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"chassis": {
"DCS-7050CX3-32S": {
"DCS-7060CX-32S": {
"component": {
"Aboot()": {},
"Scd(addr=0000:02:00.0)": {},
Expand Down

0 comments on commit 3396cca

Please sign in to comment.