Skip to content

Commit 1761e2f

Browse files
Add enhancements like read-only attributes and annotations to be used for availability query of DASH objects and entries. Signed-off-by: Marian Pritsak <[email protected]> Signed-off-by: Oleksandr Ivantsiv <[email protected]>
1 parent ad12e9e commit 1761e2f

6 files changed

+56
-0
lines changed

experimental/saiexperimentaldashacl.h

+11
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ typedef enum _sai_dash_acl_group_attr_t
6464
* @type sai_ip_addr_family_t
6565
* @flags CREATE_AND_SET
6666
* @default SAI_IP_ADDR_FAMILY_IPV4
67+
* @isresourcetype true
6768
*/
6869
SAI_DASH_ACL_GROUP_ATTR_IP_ADDR_FAMILY = SAI_DASH_ACL_GROUP_ATTR_START,
6970

@@ -105,6 +106,7 @@ typedef enum _sai_dash_acl_rule_attr_t
105106
* @type sai_object_id_t
106107
* @flags MANDATORY_ON_CREATE | CREATE_ONLY
107108
* @objects SAI_OBJECT_TYPE_DASH_ACL_GROUP
109+
* @isresourcetype true
108110
*/
109111
SAI_DASH_ACL_RULE_ATTR_DASH_ACL_GROUP_ID,
110112

@@ -169,6 +171,15 @@ typedef enum _sai_dash_acl_rule_attr_t
169171
*/
170172
SAI_DASH_ACL_RULE_ATTR_PRIORITY,
171173

174+
/**
175+
* @brief IP address family for resource accounting
176+
*
177+
* @type sai_ip_addr_family_t
178+
* @flags READ_ONLY
179+
* @isresourcetype true
180+
*/
181+
SAI_DASH_ACL_RULE_ATTR_IP_ADDR_FAMILY,
182+
172183
/**
173184
* @brief End of attributes
174185
*/

experimental/saiexperimentaldashinboundrouting.h

+9
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,15 @@ typedef enum _sai_inbound_routing_entry_attr_t
116116
*/
117117
SAI_INBOUND_ROUTING_ENTRY_ATTR_SRC_VNET_ID,
118118

119+
/**
120+
* @brief IP address family for resource accounting
121+
*
122+
* @type sai_ip_addr_family_t
123+
* @flags READ_ONLY
124+
* @isresourcetype true
125+
*/
126+
SAI_INBOUND_ROUTING_ENTRY_ATTR_IP_ADDR_FAMILY,
127+
119128
/**
120129
* @brief End of attributes
121130
*/

experimental/saiexperimentaldashoutboundcatopa.h

+9
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,15 @@ typedef enum _sai_outbound_ca_to_pa_entry_attr_t
109109
*/
110110
SAI_OUTBOUND_CA_TO_PA_ENTRY_ATTR_COUNTER_ID,
111111

112+
/**
113+
* @brief IP address family for resource accounting
114+
*
115+
* @type sai_ip_addr_family_t
116+
* @flags READ_ONLY
117+
* @isresourcetype true
118+
*/
119+
SAI_OUTBOUND_CA_TO_PA_ENTRY_ATTR_IP_ADDR_FAMILY,
120+
112121
/**
113122
* @brief End of attributes
114123
*/

experimental/saiexperimentaldashoutboundrouting.h

+9
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,15 @@ typedef enum _sai_outbound_routing_entry_attr_t
210210
*/
211211
SAI_OUTBOUND_ROUTING_ENTRY_ATTR_COUNTER_ID,
212212

213+
/**
214+
* @brief IP address family for resource accounting
215+
*
216+
* @type sai_ip_addr_family_t
217+
* @flags READ_ONLY
218+
* @isresourcetype true
219+
*/
220+
SAI_OUTBOUND_ROUTING_ENTRY_ATTR_IP_ADDR_FAMILY,
221+
213222
/**
214223
* @brief End of attributes
215224
*/

experimental/saiexperimentaldashpavalidation.h

+9
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,15 @@ typedef enum _sai_pa_validation_entry_attr_t
8787
*/
8888
SAI_PA_VALIDATION_ENTRY_ATTR_ACTION = SAI_PA_VALIDATION_ENTRY_ATTR_START,
8989

90+
/**
91+
* @brief IP address family for resource accounting
92+
*
93+
* @type sai_ip_addr_family_t
94+
* @flags READ_ONLY
95+
* @isresourcetype true
96+
*/
97+
SAI_PA_VALIDATION_ENTRY_ATTR_IP_ADDR_FAMILY,
98+
9099
/**
91100
* @brief End of attributes
92101
*/

experimental/saiexperimentaldashvip.h

+9
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,15 @@ typedef enum _sai_vip_entry_attr_t
8080
*/
8181
SAI_VIP_ENTRY_ATTR_ACTION = SAI_VIP_ENTRY_ATTR_START,
8282

83+
/**
84+
* @brief IP address family for resource accounting
85+
*
86+
* @type sai_ip_addr_family_t
87+
* @flags READ_ONLY
88+
* @isresourcetype true
89+
*/
90+
SAI_VIP_ENTRY_ATTR_IP_ADDR_FAMILY,
91+
8392
/**
8493
* @brief End of attributes
8594
*/

0 commit comments

Comments
 (0)