From b93cf05e74427d66fce2af064a3f933e2a31ea7c Mon Sep 17 00:00:00 2001 From: aalamsi22 Date: Wed, 16 Oct 2024 21:35:23 +0000 Subject: [PATCH] added platform type enum with references for meru800biab --- fboss/lib/bsp/bspmapping/Main.cpp | 2 ++ fboss/lib/bsp/bspmapping/test/ParserTest.cpp | 4 ++++ fboss/lib/if/fboss_common.thrift | 1 + fboss/lib/platforms/PlatformMode.h | 2 ++ 4 files changed, 9 insertions(+) diff --git a/fboss/lib/bsp/bspmapping/Main.cpp b/fboss/lib/bsp/bspmapping/Main.cpp index 6d9f8a2d4726e..a8b8731097a2c 100644 --- a/fboss/lib/bsp/bspmapping/Main.cpp +++ b/fboss/lib/bsp/bspmapping/Main.cpp @@ -27,6 +27,8 @@ const std::map 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, diff --git a/fboss/lib/bsp/bspmapping/test/ParserTest.cpp b/fboss/lib/bsp/bspmapping/test/ParserTest.cpp index d021a2bef077e..aa38694421dad 100644 --- a/fboss/lib/bsp/bspmapping/test/ParserTest.cpp +++ b/fboss/lib/bsp/bspmapping/test/ParserTest.cpp @@ -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), diff --git a/fboss/lib/if/fboss_common.thrift b/fboss/lib/if/fboss_common.thrift index a42ab5dddad91..784553771ad39 100644 --- a/fboss/lib/if/fboss_common.thrift +++ b/fboss/lib/if/fboss_common.thrift @@ -40,4 +40,5 @@ enum PlatformType { PLATFORM_JANGA800BIC = 32, PLATFORM_TAHAN800BC = 33, PLATFORM_MERU800BFA_P1 = 34, + PLATFORM_MERU800BIAB = 35, } diff --git a/fboss/lib/platforms/PlatformMode.h b/fboss/lib/platforms/PlatformMode.h index a7a29dd821aab..20c784b352624 100644 --- a/fboss/lib/platforms/PlatformMode.h +++ b/fboss/lib/platforms/PlatformMode.h @@ -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: