Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lib: add DARWIN48V platform definition #257

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
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 @@ -42,4 +42,5 @@ enum PlatformType {
PLATFORM_MERU800BFA_P1 = 34,
PLATFORM_MERU800BIAB = 35,
PLATFORM_YANGRA = 36,
PLATFORM_DARWIN48V = 37,
}
2 changes: 2 additions & 0 deletions fboss/lib/platforms/PlatformMode.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ inline std::string toString(PlatformType mode) {
return "CLOUDRIPPER";
case PlatformType::PLATFORM_DARWIN:
return "DARWIN";
case PlatformType::PLATFORM_DARWIN48V:
return "DARWIN48V";
case PlatformType::PLATFORM_LASSEN_DEPRECATED:
return "LASSEN";
case PlatformType::PLATFORM_SANDIA:
Expand Down
2 changes: 2 additions & 0 deletions fboss/lib/platforms/PlatformProductInfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@ void PlatformProductInfo::initMode() {
} else if (
modelName.find("Wedge400") == 0 || modelName.find("WEDGE400") == 0) {
type_ = PlatformType::PLATFORM_WEDGE400;
} else if (modelName.find("DARWIN48V") == 0) {
type_ = PlatformType::PLATFORM_DARWIN48V;
} else if (
modelName.find("Darwin") == 0 || modelName.find("DARWIN") == 0 ||
modelName.find("DCS-7060") == 0 || modelName.find("Rackhawk") == 0) {
Expand Down
Loading