Skip to content

Commit fc883aa

Browse files
committed
[Accton][m4052actm] Add/Modify FBOSS related files to support new m4052actm platform
Description: Summary: 1. Introduce initial code for the new m4052actm platform. 2. Follow guidelines from "Config-Driven Platform Support" in [New Platform Support](https://github.com/facebook/fboss/blob/main/docs/docs/developing/new_platform_support.md#config-driven-platform-support-recommended). 3. Verified build with "--cmake-target fboss_fake_agent_targets" Test Plan: Imported from GitHub, without a `Test Plan:` line.
1 parent 830ba58 commit fc883aa

13 files changed

Lines changed: 191662 additions & 0 deletions

fboss/agent/platforms/common/PlatformMappingUtils.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,7 @@ std::unique_ptr<PlatformMapping> initPlatformMapping(PlatformType type) {
200200
: std::make_unique<Icecube800banwPlatformMapping>(platformMappingStr);
201201
case PlatformType::PLATFORM_WEDGE800BACT:
202202
case PlatformType::PLATFORM_WEDGE800BNHP:
203+
case PlatformType::PLATFORM_M4052ACTM:
203204
// Wedge800BACT/Wedge800BNHP no longer ship a compiled-in platform
204205
// mapping. The mapping must be provided externally via
205206
// --platform_descriptor_config_path or --platform_mapping_override_path.

fboss/lib/if/fboss_common.thrift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ enum PlatformType {
6868
PLATFORM_M4062NHP = 53,
6969
PLATFORM_WEDGE800BNHP = 54,
7070
PLATFORM_M5120CSC = 55,
71+
PLATFORM_M4052ACTM = 56,
7172
PLATFORM_UNKNOWN = 1000, # Placeholder for unknown platform type
7273
}
7374

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"platformType": 56,
3+
"productNamePrefixes": [
4+
"M4052ACTM"
5+
],
6+
"modeNames": [
7+
"m4052actm"
8+
],
9+
"asicType": 13
10+
}

0 commit comments

Comments
 (0)