Skip to content

Commit abaf952

Browse files
authored
Add label attribute for ACL counter (opencomputeproject#1430)
Summary: This is similar to opencomputeproject#1158 and opencomputeproject#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 <[email protected]>
1 parent cfffbea commit abaf952

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

inc/saiacl.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3016,6 +3016,15 @@ typedef enum _sai_acl_counter_attr_t
30163016
*/
30173017
SAI_ACL_COUNTER_ATTR_BYTES,
30183018

3019+
/**
3020+
* @brief Attribute used to uniquely identify ACL counter.
3021+
*
3022+
* @type char
3023+
* @flags CREATE_AND_SET
3024+
* @default ""
3025+
*/
3026+
SAI_ACL_COUNTER_ATTR_LABEL,
3027+
30193028
/**
30203029
* @brief End of attributes
30213030
*/

0 commit comments

Comments
 (0)