Skip to content

Commit

Permalink
Default value for Port attr Reachability Group
Browse files Browse the repository at this point in the history
Summary: As titled. If SDK does not support reaching reachability group (J3), return default 0 value.

Reviewed By: shri-khare, srikrishnagopu

Differential Revision: D61458742

fbshipit-source-id: 9f5bcb7f8305f4b9b92326730893765f1f0cb8cd
  • Loading branch information
Ron He authored and facebook-github-bot committed Aug 19, 2024
1 parent cda30d6 commit ffdc841
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions fboss/agent/hw/sai/api/PortApi.h
Original file line number Diff line number Diff line change
Expand Up @@ -415,8 +415,10 @@ struct SaiPortTraits {
struct AttributeReachabilityGroup {
std::optional<sai_attr_id_t> operator()();
};
using ReachabilityGroup =
SaiExtensionAttribute<sai_uint32_t, AttributeReachabilityGroup>;
using ReachabilityGroup = SaiExtensionAttribute<
sai_uint32_t,
AttributeReachabilityGroup,
SaiIntDefault<sai_uint32_t>>;
};
using AdapterKey = PortSaiId;

Expand Down

0 comments on commit ffdc841

Please sign in to comment.