Skip to content

Commit

Permalink
added platform type enum with references for meru800biab
Browse files Browse the repository at this point in the history
  • Loading branch information
aalamsi22 committed Oct 16, 2024
1 parent 27e3b2d commit b93cf05
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 0 deletions.
2 changes: 2 additions & 0 deletions fboss/lib/bsp/bspmapping/Main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ const std::map<PlatformType, folly::StringPiece> kHardwareNameMap = {
kPortMappingMeru400biuCsv},
{facebook::fboss::PlatformType::PLATFORM_MERU800BIA,
kPortMappingMeru800biaCsv},
{facebook::fboss::PlatformType::PLATFORM_MERU800BIAB,
kPortMappingMeru800biaCsv},
{facebook::fboss::PlatformType::PLATFORM_MERU800BFA,
kPortMappingMeru800bfaCsv},
{facebook::fboss::PlatformType::PLATFORM_JANGA800BIC,
Expand Down
4 changes: 4 additions & 0 deletions fboss/lib/bsp/bspmapping/test/ParserTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ TEST(ParserTest, GetNameForTests) {
facebook::fboss::Parser::getNameFor(
facebook::fboss::PlatformType::PLATFORM_MERU800BIA),
"meru800bia");
EXPECT_EQ(
facebook::fboss::Parser::getNameFor(
facebook::fboss::PlatformType::PLATFORM_MERU800BIAB),
"meru800biab");
EXPECT_EQ(
facebook::fboss::Parser::getNameFor(
facebook::fboss::PlatformType::PLATFORM_MERU800BFA),
Expand Down
1 change: 1 addition & 0 deletions fboss/lib/if/fboss_common.thrift
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,5 @@ enum PlatformType {
PLATFORM_JANGA800BIC = 32,
PLATFORM_TAHAN800BC = 33,
PLATFORM_MERU800BFA_P1 = 34,
PLATFORM_MERU800BIAB = 35,
}
2 changes: 2 additions & 0 deletions fboss/lib/platforms/PlatformMode.h
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@ inline std::string toString(PlatformType mode) {
return "MONTBLANC";
case PlatformType::PLATFORM_MERU800BIA:
return "MERU800BIA";
case PlatformType::PLATFORM_MERU800BIAB:
return "MERU800BIAB";
case PlatformType::PLATFORM_MERU800BFA:
return "MERU800BFA";
case PlatformType::PLATFORM_MERU800BFA_P1:
Expand Down

0 comments on commit b93cf05

Please sign in to comment.