From 206639283f328c4d5518de3ea6e2955f14122c22 Mon Sep 17 00:00:00 2001 From: Ravi Vantipalli Date: Thu, 19 Dec 2024 08:09:44 -0800 Subject: [PATCH] DLB: Use nullopt default for ARS ID with NHG create 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 --- fboss/agent/hw/sai/switch/SaiNextHopGroupManager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fboss/agent/hw/sai/switch/SaiNextHopGroupManager.cpp b/fboss/agent/hw/sai/switch/SaiNextHopGroupManager.cpp index 1825a9bd26bb9..c0e9fd50be1d0 100644 --- a/fboss/agent/hw/sai/switch/SaiNextHopGroupManager.cpp +++ b/fboss/agent/hw/sai/switch/SaiNextHopGroupManager.cpp @@ -64,7 +64,7 @@ SaiNextHopGroupManager::incRefOrAddNextHopGroup( #if SAI_API_VERSION >= SAI_VERSION(1, 14, 0) std::optional arsObjectId{ - SAI_NULL_OBJECT_ID}; + std::nullopt}; if (FLAGS_flowletSwitchingEnable && platform_->getAsic()->isSupported(HwAsic::Feature::FLOWLET)) { auto arsHandlePtr = managerTable_->arsManager().getArsHandle();