Skip to content

Commit

Permalink
[BFN] Updated FANs and FAN Tray platform API (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
KostiantynYarovyiBf authored and Andriy Kokhan committed Dec 17, 2021
1 parent 723ab75 commit b9acb4e
Show file tree
Hide file tree
Showing 5 changed files with 419 additions and 79 deletions.
122 changes: 98 additions & 24 deletions device/barefoot/x86_64-accton_as9516_32d-r0/platform.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,46 +3,120 @@
"name": "Newport",
"fans": [
{
"name": "counter-rotating-fan-1"
},
{
"name": "counter-rotating-fan-2"
},
{
"name": "counter-rotating-fan-3"
},
{
"name": "counter-rotating-fan-4"
},
{
"name": "counter-rotating-fan-5"
},
{
"name": "counter-rotating-fan-6"
"name": "counter-rotating-fan-1",
"status_led": {
"controllable": false
},
"speed": {
"controllable": false
}
}
{
"name": "counter-rotating-fan-2",
"status_led": {
"controllable": false
},
"speed": {
"controllable": false
}
},
{
"name": "counter-rotating-fan-3",
"status_led": {
"controllable": false
},
"speed": {
"controllable": false
}
},
{
"name": "counter-rotating-fan-4",
"status_led": {
"controllable": false
},
"speed": {
"controllable": false
}
},
{
"name": "counter-rotating-fan-5",
"status_led": {
"controllable": false
},
"speed": {
"controllable": false
}
},
{
"name": "counter-rotating-fan-6",
"status_led": {
"controllable": false
},
"speed": {
"controllable": false
}
}
],
"fan_drawers":[
{
"name": "fantray",
"num_fans" : 6,
"name": "fantray-1",
"status_led": {
"controllable": false
},
"fans": [
{
"name": "counter-rotating-fan-1"
"name": "counter-rotating-fan-1",
"status_led": {
"controllable": false
},
"speed": {
"controllable": false
}
},
{
"name": "counter-rotating-fan-2"
"name": "counter-rotating-fan-2",
"status_led": {
"controllable": false
},
"speed": {
"controllable": false
}
},
{
"name": "counter-rotating-fan-3"
"name": "counter-rotating-fan-3",
"status_led": {
"controllable": false
},
"speed": {
"controllable": false
}
},
{
"name": "counter-rotating-fan-4"
"name": "counter-rotating-fan-4",
"status_led": {
"controllable": false
},
"speed": {
"controllable": false
}
},
{
"name": "counter-rotating-fan-5"
"name": "counter-rotating-fan-5",
"status_led": {
"controllable": false
},
"speed": {
"controllable": false
}
},
{
"name": "counter-rotating-fan-6"
"name": "counter-rotating-fan-6",
"status_led": {
"controllable": false
},
"speed": {
"controllable": false
}
}
]
}
Expand Down
102 changes: 82 additions & 20 deletions device/barefoot/x86_64-accton_wedge100bf_32x-r0/platform.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,40 +3,102 @@
"name": "Wedge100BF-32X-O-AC-F-BF",
"fans": [
{
"name": "counter-rotating-fan-1"
},
{
"name": "counter-rotating-fan-2"
},
{
"name": "counter-rotating-fan-3"
},
{
"name": "counter-rotating-fan-4"
},
{
"name": "counter-rotating-fan-5"
"name": "counter-rotating-fan-1",
"status_led": {
"controllable": false
},
"speed": {
"controllable": false
}
},
{
"name": "counter-rotating-fan-2",
"status_led": {
"controllable": false
},
"speed": {
"controllable": false
}
},
{
"name": "counter-rotating-fan-3",
"status_led": {
"controllable": false
},
"speed": {
"controllable": false
}
},
{
"name": "counter-rotating-fan-4",
"status_led": {
"controllable": false
},
"speed": {
"controllable": false
}
},
{
"name": "counter-rotating-fan-5",
"status_led": {
"controllable": false
},
"speed": {
"controllable": false
}
}
],
"fan_drawers":[
{
"name": "fantray",
"num_fans" : 5,
"name": "fantray-1",
"status_led": {
"controllable": false
},
"fans": [
{
"name": "counter-rotating-fan-1"
"name": "counter-rotating-fan-1",
"status_led": {
"controllable": false
},
"speed": {
"controllable": false
}
},
{
"name": "counter-rotating-fan-2"
"name": "counter-rotating-fan-2",
"status_led": {
"controllable": false
},
"speed": {
"controllable": false
}
},
{
"name": "counter-rotating-fan-3"
"name": "counter-rotating-fan-3",
"status_led": {
"controllable": false
},
"speed": {
"controllable": false
}
},
{
"name": "counter-rotating-fan-4"
"name": "counter-rotating-fan-4",
"status_led": {
"controllable": false
},
"speed": {
"controllable": false
}
},
{
"name": "counter-rotating-fan-5"
"name": "counter-rotating-fan-5",
"status_led": {
"controllable": false
},
"speed": {
"controllable": false
}
}
]
}
Expand Down
Loading

0 comments on commit b9acb4e

Please sign in to comment.