Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions fboss/lib/if/fboss_common.thrift
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,5 @@ enum PlatformType {
PLATFORM_DARWIN48V = 37,
PLATFORM_MINIPACK3N = 38,
PLATFORM_ICECUBE800BC = 39,
PLATFORM_GLATH05A_64O = 40,
}
2 changes: 2 additions & 0 deletions fboss/lib/platforms/PlatformMode.h
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,8 @@ inline std::string toString(PlatformType mode) {
return "MINIPACK3N";
case PlatformType::PLATFORM_ICECUBE800BC:
return "ICECUBE";
case PlatformType::PLATFORM_GLATH05A_64O:
return "GLATH05A-64O";
}
throw std::runtime_error("Unknown mode");
return "Unknown";
Expand Down
6 changes: 6 additions & 0 deletions fboss/lib/platforms/PlatformProductInfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,10 @@ void PlatformProductInfo::initMode() {
type_ = PlatformType::PLATFORM_TAHAN800BC;
} else if (modelName.find("ICEPACK-TH6") == 0) {
type_ = PlatformType::PLATFORM_ICECUBE800BC;
} else if (
modelName.find("Glath05a-64o") == 0 ||
modelName.find("GLATH05A-64O") == 0) {
type_ = PlatformType::PLATFORM_GLATH05A_64O;
} else {
throw FbossError("invalid model name " + modelName);
}
Expand Down Expand Up @@ -246,6 +250,8 @@ void PlatformProductInfo::initMode() {
type_ = PlatformType::PLATFORM_YANGRA;
} else if (FLAGS_mode == "minipack3n") {
type_ = PlatformType::PLATFORM_MINIPACK3N;
} else if (FLAGS_mode == "glath05a-64o") {
type_ = PlatformType::PLATFORM_GLATH05A_64O;
} else {
throw std::runtime_error("invalid mode " + FLAGS_mode);
}
Expand Down
Loading