Skip to content

Commit

Permalink
Add label attribute for ACL counter (#1430)
Browse files Browse the repository at this point in the history
Summary:

This is similar to #1158 and #1407.

Those PRs added label attribute for LAG/virtual router and counter. This
PR adds similar label attribute for ACL counter.

ACL counter does not have any mandatory attribute to identify object
uniquely. Adding a label attribute that can be used to uniquely identify
ACL counter object during warmboot. The attribute is considered as user
data attached to the object.

Signed-off-by: Shrikrishna Khare <skhare@fb.com>
  • Loading branch information
shri-khare authored Mar 13, 2022
1 parent cfffbea commit abaf952
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions inc/saiacl.h
Original file line number Diff line number Diff line change
Expand Up @@ -3016,6 +3016,15 @@ typedef enum _sai_acl_counter_attr_t
*/
SAI_ACL_COUNTER_ATTR_BYTES,

/**
* @brief Attribute used to uniquely identify ACL counter.
*
* @type char
* @flags CREATE_AND_SET
* @default ""
*/
SAI_ACL_COUNTER_ATTR_LABEL,

/**
* @brief End of attributes
*/
Expand Down

0 comments on commit abaf952

Please sign in to comment.