Skip to content

Commit

Permalink
DLB: Use nullopt default for ARS ID with NHG create
Browse files Browse the repository at this point in the history
Summary: Using std::nullopt allows passing the attribute to create attr list. Helps with DNX NHG create where this attr is unsupported

Reviewed By: zechengh09

Differential Revision: D67402443

fbshipit-source-id: c0fa7cfa5cd402a13e8e87b6b053fffe3fe6bf69
  • Loading branch information
Ravi Vantipalli authored and facebook-github-bot committed Dec 19, 2024
1 parent deff1d4 commit 2066392
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fboss/agent/hw/sai/switch/SaiNextHopGroupManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ SaiNextHopGroupManager::incRefOrAddNextHopGroup(

#if SAI_API_VERSION >= SAI_VERSION(1, 14, 0)
std::optional<SaiNextHopGroupTraits::Attributes::ArsObjectId> arsObjectId{
SAI_NULL_OBJECT_ID};
std::nullopt};
if (FLAGS_flowletSwitchingEnable &&
platform_->getAsic()->isSupported(HwAsic::Feature::FLOWLET)) {
auto arsHandlePtr = managerTable_->arsManager().getArsHandle();
Expand Down

0 comments on commit 2066392

Please sign in to comment.