diff --git a/inc/sainexthopgroup.h b/inc/sainexthopgroup.h index a34e9fdf6..c1dd26004 100644 --- a/inc/sainexthopgroup.h +++ b/inc/sainexthopgroup.h @@ -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 */ @@ -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, + /** * @brief End of attributes */