From 34b6cc0de2318807f2014f58ace3bbce8975d63f Mon Sep 17 00:00:00 2001 From: andywongarista <78833093+andywongarista@users.noreply.github.com> Date: Tue, 18 Oct 2022 18:38:28 -0700 Subject: [PATCH] [Arista] Fix content of platform.json for DCS-7050CX3-32S (#12082) * Fix platform.json for 7050cx3 * Add platform_components.json * Mark thermals as not controllable --- .../x86_64-arista_7050cx3_32s/platform.json | 71 ++++++++++++------- .../platform_components.json | 13 ++++ 2 files changed, 57 insertions(+), 27 deletions(-) create mode 100644 device/arista/x86_64-arista_7050cx3_32s/platform_components.json diff --git a/device/arista/x86_64-arista_7050cx3_32s/platform.json b/device/arista/x86_64-arista_7050cx3_32s/platform.json index 6a417e320e..274f44615f 100644 --- a/device/arista/x86_64-arista_7050cx3_32s/platform.json +++ b/device/arista/x86_64-arista_7050cx3_32s/platform.json @@ -1,7 +1,23 @@ { "chassis": { "name": "DCS-7050CX3-32S", - "components": [], + "components": [ + { + "name": "Aboot()" + }, + { + "name": "Scd(addr=0000:02:00.0)" + }, + { + "name": "Ucd90120A(addr=3-004e)" + }, + { + "name": "Ucd90120A(addr=16-004e)" + }, + { + "name": "CrowSysCpld(addr=2-0023)" + } + ], "fans": [], "fan_drawers": [ { @@ -40,46 +56,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 temp sensor", + "controllable": false }, { - "name": "Cpu board temp sensor" + "name": "Cpu board temp sensor", + "controllable": false }, { - "name": "Back-panel temp sensor" + "name": "Back-panel temp sensor", + "controllable": false }, { - "name": "Board temp sensor" + "name": "Board temp sensor", + "controllable": false }, { - "name": "Front-panel temp sensor" - }, - { - "name": "Power supply 1 hotspot sensor" - }, - { - "name": "Power supply 1 inlet temp sensor" - }, - { - "name": "Power supply 1 exhaust temp sensor" - }, - { - "name": "Power supply 2 hotspot sensor" - }, - { - "name": "Power supply 2 inlet temp sensor" - }, - { - "name": "Power supply 2 exhaust temp sensor" + "name": "Front-panel temp sensor", + "controllable": false } ], "sfps": [ @@ -815,4 +832,4 @@ } } } -} \ No newline at end of file +} diff --git a/device/arista/x86_64-arista_7050cx3_32s/platform_components.json b/device/arista/x86_64-arista_7050cx3_32s/platform_components.json new file mode 100644 index 0000000000..0d30d1b13e --- /dev/null +++ b/device/arista/x86_64-arista_7050cx3_32s/platform_components.json @@ -0,0 +1,13 @@ +{ + "chassis": { + "DCS-7050CX3-32S": { + "component": { + "Aboot()": {}, + "Scd(addr=0000:00:18.7)": {}, + "Ucd90120A(addr=3-004e)": {}, + "Ucd90120A(addr=16-004e)": {}, + "CrowSysCpld(addr=2-0023)": {} + } + } + } +}