Skip to content

Commit 5105175

Browse files
committed
[Nexthop][M4062NHP] Add Platform Manager support
**Pre-submission checklist** - [x] I've ran the linters locally and fixed lint errors related to the files I modified in this PR. You can install the linters by running `pip install -r requirements-dev.txt && pre-commit install` - [x] `pre-commit run` **Summary Add platform_manager.json for the M4062nhp platform, modeling the SCM and SMB PmUnits (PCI/I2C/FPGA topology, chassis EEPROM, port LEDs, fans, PSUs) per the Platform Manager spec. Also add a ConfigLibTest case that deserializes and validates the committed config. **Test Plan Validated the JSON parses and conforms to platform_manager_config.thrift. Built the BSP kmods RPM from nexthop-ai/nexthop.fboss.bsp.kmods and confirmed it provides every module in requiredKmodsToLoad. Added a ConfigLibTest case that deserializes and runs ConfigValidator on the committed config.
1 parent ba96ca6 commit 5105175

5 files changed

Lines changed: 738 additions & 0 deletions

File tree

‎cmake/PlatformPlatformManagerTest.cmake‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ add_executable(platform_manager_config_validator_test
99

1010
target_link_libraries(platform_manager_config_validator_test
1111
platform_manager_config_validator
12+
platform_config_lib
1213
Folly::folly
1314
${GTEST}
1415
${LIBGMOCK_LIBRARIES}

‎fboss/platform/config_lib/ConfigLibTest.cpp‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ const std::string kJanga800bic = "janga800bic";
1818
const std::string kTahan800bc = "tahan800bc";
1919
const std::string kBlackwolf800banw = "blackwolf800banw";
2020
const std::string kSample = "sample";
21+
const std::string kM4062nhp = "m4062nhp";
2122
const std::string kNonExistentPlatform = "nonExistentPlatform";
2223
} // namespace
2324

@@ -52,6 +53,7 @@ TEST(ConfigLibTest, Basic) {
5253
EXPECT_NO_THROW(ConfigLib().getPlatformManagerConfig(kMeru800bia));
5354
EXPECT_NO_THROW(ConfigLib().getPlatformManagerConfig(kMeru800bfa));
5455
EXPECT_NO_THROW(ConfigLib().getPlatformManagerConfig(kMontblanc));
56+
EXPECT_NO_THROW(ConfigLib().getPlatformManagerConfig(kM4062nhp));
5557
EXPECT_NO_THROW(ConfigLib().getPlatformManagerConfig(kMorgan800cc));
5658
EXPECT_NO_THROW(ConfigLib().getPlatformManagerConfig(kJanga800bic));
5759
EXPECT_NO_THROW(ConfigLib().getPlatformManagerConfig(kTahan800bc));

0 commit comments

Comments
 (0)