Skip to content
Open
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
25 changes: 25 additions & 0 deletions inc/sainexthopgroup.h
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,22 @@ typedef struct _sai_next_hop_group_hw_protection_switchover_notification_data_t
sai_object_list_t failed_next_hop_groups;
} sai_next_hop_group_hw_protection_switchover_notification_data_t;

/**
* @brief Next hop group is configured with weights or not
*/
typedef enum _sai_next_hop_group_members_weight_t
{
/** This is for legacy platforms where this attribute is don't care */
SAI_NEXT_HOP_GROUP_MEMBERS_WEIGHT_DONT_CARE,

/** Next hop group members are weighted */
SAI_NEXT_HOP_GROUP_MEMBERS_WEIGHT_WEIGHTED,

/** Next hop group members are unweighted */
SAI_NEXT_HOP_GROUP_MEMBERS_WEIGHT_UNWEIGHTED,

} sai_next_hop_group_members_weight_t;

/**
* @brief Attribute id for next hop
*/
Expand Down Expand Up @@ -359,6 +375,15 @@ typedef enum _sai_next_hop_group_attr_t
*/
SAI_NEXT_HOP_GROUP_ATTR_ADMIN_ROLE,

/**
* @brief This attribute indicates if all the members are with weights or are unweighted
*
* @type sai_next_hop_group_members_weight_t
* @flags CREATE_ONLY
* @default SAI_NEXT_HOP_GROUP_MEMBERS_WEIGHT_DONT_CARE
*/
SAI_NEXT_HOP_GROUP_ATTR_MEMBERS_WEIGHT,

Comment thread
JaiOCP marked this conversation as resolved.
/**
* @brief End of attributes
*/
Expand Down
Loading