Skip to content

Commit

Permalink
[BFN] Updated platform plugins (sonic-net#9540)
Browse files Browse the repository at this point in the history
* [BFN] Updated platform APIs impl

Signed-off-by: Andriy Kokhan <andriyx.kokhan@intel.com>

* Extended BFN platform SFP APIs implementation

* Update sfp.py

* [BFN] Extended SFP platform plugin implementation

Signed-off-by: Andriy Kokhan <andriyx.kokhan@intel.com>

* [BFN] Extended Fans platform plugin implementation

* [BFN] divided classes Fan and  FanDrawer into 2 files

* Signed-off-by: Vadym Yashchenko <vadymx.yashchenko@intel.com>

What I did
	Add get_model() function
	Add get_low_critical_threshold() function
	Change __get(...) function.
How I did it
	Differnece from previous implementation of __get(...) function is return real value or -9999.9 if value is not provided by thrift API

* Add get_presence() function and revised __get() function

Signed-off-by: Vadym Yashchenko <vadymx.yashchenko@intel.com>

* [BFN] Updated PSU platform APIs impl

Signed-off-by: Dmytro Lytvynenko <dmytrox.lytvynenko@intel.com>

* Added BFN PSU cache (#9)

Signed-off-by: Andriy Kokhan <andriyx.kokhan@intel.com>

* [BFN]  Fans and Fantray platform APIs update (#7)

* [BFN] Updated SFP platform APIs (#10)

Signed-off-by: Volodymyr Boyko <volodymyrx.boiko@intel.com>

* [BFN] Updated platform API for thermal (#8)

* Signed-off-by: Vadym Yashchenko <vadymx.yashchenko@intel.com>

* Revert "[BFN]  Fans and Fantray platform APIs update (#7)" (#11)

This reverts commit c62a733.

* Add support health monitor system (#15)

Signed-off-by: Petro Bratash <petrox.bratash@intel.com>

* Update chassis.py

* [BFN] Updated FANs and FAN Tray platform API (#14)

* Fix fix_alignment (#17)

Signed-off-by: Petro Bratash <petrox.bratash@intel.com>

* [BFN] Improvement show environment (#16)

* Added PSU temperature skip into platform.json (#18)

Signed-off-by: Andriy Kokhan <andriyx.kokhan@intel.com>

* Do not skip psud on Newport

Signed-off-by: Andriy Kokhan <andriyx.kokhan@intel.com>

* [BFN] fix fan status from Not OK to Ok (#19)

* [BFN] Updated SFP platform plugin (#13)

Signed-off-by: Volodymyr Boyko <volodymyrx.boiko@intel.com>

* [DPB] Fix typo for Ethernet0 2x200G[100G,40G] breakout mode (#21)

Signed-off-by: Mykola Gerasymenko <mykolax.gerasymenko@intel.com>

* [barefoot] Tmp fix vendor_rev (#22)

Signed-off-by: Volodymyr Boyko <volodymyrx.boiko@intel.com>

* Fixed python issues in sonic_platform/fan_drawer.py

Signed-off-by: Andriy Kokhan <andriyx.kokhan@intel.com>

* Updated fan_drawer.py

* Fixing trailing white spaces in fan_drawer.py

* [BFN] Fix thrift for SFPs API

Signed-off-by: Volodymyr Boyko <volodymyrx.boiko@intel.com>

* In platform.json, replaced 'false' with '0' to workaround ast.literal_eval() issue

Signed-off-by: Andriy Kokhan <andriyx.kokhan@intel.com>

* [Newport] Thermal manager  (#23)

* Signed-off-by: Vadym Yashchenko <vadymx.yashchenko@intel.com>

* Revert "In platform.json, replaced 'false' with '0' to workaround ast.literal_eval() issue"

This reverts commit 1e73127.

* Removed 'controllable' options from platform.json to fix factory default config generation

Signed-off-by: Andriy Kokhan <andriyx.kokhan@intel.com>

* Update thermal_manager.py

* Migrated SFP plugin to sonic_xcvr API (#30)

Signed-off-by: Andriy Kokhan <andriyx.kokhan@intel.com>

Co-authored-by: KostiantynYarovyiBf <kostiantynx.yarovyi@intel.com>
Co-authored-by: Vadym Yashchenko <vadymx.yashchenko@intel.com>
Co-authored-by: Dmytro Lytvynenko <dmytrox.lytvynenko@intel.com>
Co-authored-by: Volodymyr Boiko <volodymyrx.boiko@intel.com>
Co-authored-by: Petro Bratash <petrox.bratash@intel.com>
Co-authored-by: Mykola Gerasymenko <mykolax.gerasymenko@intel.com>
  • Loading branch information
7 people committed Jan 17, 2022
1 parent a015012 commit 4037867
Show file tree
Hide file tree
Showing 18 changed files with 6,404 additions and 1,233 deletions.
113 changes: 62 additions & 51 deletions device/barefoot/x86_64-accton_as9516_32d-r0/platform.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,9 @@
"name": "counter-rotating-fan-6"
}
],
"fan_drawers":[
"fan_drawers": [
{
"name": "fantray",
"num_fans" : 6,
"name": "fantray-1",
"fans": [
{
"name": "counter-rotating-fan-1"
Expand Down Expand Up @@ -57,147 +56,159 @@
],
"thermals": [
{
"name": "tmp75-i2c-3-4b:switch-temp"
"name": "com_e_driver-i2c-4-33:cpu-temp"
},
{
"name": "com_e_driver-i2c-4-33:memory-temp"
},
{
"name": "com_e_driver-i2c-4-33:cpu-temp"
"name": "psu_driver-i2c-7-59:psu2-temp1"
},
{
"name": "coretemp-isa-0000:core-0"
"name": "psu_driver-i2c-7-59:psu2-temp2"
},
{
"name": "coretemp-isa-0000:core-1"
"name": "psu_driver-i2c-7-59:psu2-temp3"
},
{
"name": "coretemp-isa-0000:core-2"
"name": "psu_driver-i2c-7-5a:psu1-temp1"
},
{
"name": "coretemp-isa-0000:core-3"
"name": "psu_driver-i2c-7-5a:psu1-temp2"
},
{
"name": "coretemp-isa-0000:package-id-0"
"name": "psu_driver-i2c-7-5a:psu1-temp3"
},
{
"name": "psu_driver-i2c-7-5a:psu1-temp1"
"name": "tmp75-i2c-3-48:chip-temp"
},
{
"name": "psu_driver-i2c-7-5a:psu1-temp2"
"name": "tmp75-i2c-3-49:exhaust2-temp"
},
{
"name": "psu_driver-i2c-7-5a:psu1-temp3"
"name": "tmp75-i2c-3-4a:exhaust-temp"
},
{
"name": "tmp75-i2c-3-4a:inlet-left-temp"
"name": "tmp75-i2c-3-4b:intake-temp"
},
{
"name": "tmp75-i2c-3-4c:inlet-right-temp"
"name": "tmp75-i2c-3-4c:tofino-temp"
},
{
"name": "tmp75-i2c-3-4d:temp1"
"name": "tmp75-i2c-3-4d:intake2-temp"
},
{
"name": "tmp75-i2c-3-48:outlet-middle-temp"
"name": "coretemp-isa-0000:package-id-0"
},
{
"name": "coretemp-isa-0000:core-0"
},
{
"name": "coretemp-isa-0000:core-1"
},
{
"name": "tmp75-i2c-3-49:inlet-middle-temp"
"name": "coretemp-isa-0000:core-2"
},
{
"name": "coretemp-isa-0000:core-3"
}
],
"sfps": [
{
"name": "Ethernet0"
"name": "sfp1"
},
{
"name": "sfp2"
},
{
"name": "Ethernet8"
"name": "sfp3"
},
{
"name": "Ethernet16"
"name": "sfp4"
},
{
"name": "Ethernet32"
"name": "sfp5"
},
{
"name": "Ethernet40"
"name": "sfp6"
},
{
"name": "Ethernet48"
"name": "sfp7"
},
{
"name": "Ethernet56"
"name": "sfp8"
},
{
"name": "Ethernet64"
"name": "sfp9"
},
{
"name": "Ethernet72"
"name": "sfp10"
},
{
"name": "Ethernet80"
"name": "sfp11"
},
{
"name": "Ethernet88"
"name": "sfp12"
},
{
"name": "Ethernet96"
"name": "sfp13"
},
{
"name": "Ethernet104"
"name": "sfp14"
},
{
"name": "Ethernet112"
"name": "sfp15"
},
{
"name": "Ethernet120"
"name": "sfp16"
},
{
"name": "Ethernet128"
"name": "sfp17"
},
{
"name": "Ethernet136"
"name": "sfp18"
},
{
"name": "Ethernet144"
"name": "sfp19"
},
{
"name": "Ethernet152"
"name": "sfp20"
},
{
"name": "Ethernet160"
"name": "sfp21"
},
{
"name": "Ethernet168"
"name": "sfp22"
},
{
"name": "Ethernet176"
"name": "sfp23"
},
{
"name": "Ethernet184"
"name": "sfp24"
},
{
"name": "Ethernet192"
"name": "sfp25"
},
{
"name": "Ethernet200"
"name": "sfp26"
},
{
"name": "Ethernet208"
"name": "sfp27"
},
{
"name": "Ethernet216"
"name": "sfp28"
},
{
"name": "Ethernet224"
"name": "sfp29"
},
{
"name": "Ethernet232"
"name": "sfp30"
},
{
"name": "Ethernet240"
"name": "sfp31"
},
{
"name": "Ethernet248"
"name": "sfp32"
}
]
},
Expand All @@ -207,7 +218,7 @@
"lanes": "0,1,2,3,4,5,6,7",
"breakout_modes": {
"1x400G[200G]": ["Ethernet0"],
"2x200G[100G,40G]": ["Ethernet0, Ethernet4"],
"2x200G[100G,40G]": ["Ethernet0", "Ethernet4"],
"4x100G[50G]": ["Ethernet0", "Ethernet2", "Ethernet4", "Ethernet6"],
"8x50G[25G,10G]": ["Ethernet0", "Ethernet1", "Ethernet2", "Ethernet3", "Ethernet4", "Ethernet5", "Ethernet6", "Ethernet7"],
"1x200G[100G,40G](4)+4x50G[25G,10G](4)": ["Ethernet0", "Ethernet4", "Ethernet5", "Ethernet6", "Ethernet7"],
Expand Down Expand Up @@ -587,4 +598,4 @@
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
"skip_thermalctld": false,
"skip_ledd": true,
"skip_xcvrd": false,
"skip_psud": true,
"skip_psud": false,
"skip_syseepromd": false
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"services_to_ignore": [],
"devices_to_ignore": [],
"user_defined_checkers": [],
"polling_interval": 60,
"led_color": {
"fault": "amber",
"normal": "green",
"booting": "orange_blink"
}
}
Loading

0 comments on commit 4037867

Please sign in to comment.