Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ingress_acl and egress_acl attributes to tunnel object #1908

Closed
Closed
Show file tree
Hide file tree
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
32 changes: 32 additions & 0 deletions inc/saitunnel.h
Original file line number Diff line number Diff line change
Expand Up @@ -774,6 +774,38 @@ typedef enum _sai_tunnel_attr_t
*/
SAI_TUNNEL_ATTR_VXLAN_UDP_SPORT_SECURITY,

/**
* @brief Tunnel bind point for ingress ACL object
*
* Bind (or unbind) an ingress ACL table or ACL group on a tunnel.
* Enable/Update ingress ACL table or ACL group filtering by assigning
* a valid object id. Disable ingress filtering by assigning
* SAI_NULL_OBJECT_ID in the attribute value.
*
* @type sai_object_id_t
* @flags CREATE_AND_SET
* @objects SAI_OBJECT_TYPE_ACL_TABLE, SAI_OBJECT_TYPE_ACL_TABLE_GROUP
* @allownull true
* @default SAI_NULL_OBJECT_ID
*/
SAI_TUNNEL_ATTR_INGRESS_ACL,

/**
* @brief Tunnel bind point for egress ACL object
*
* Bind (or unbind) an egress ACL table or ACL group on a tunnel.
* Enable/Update egress ACL table or ACL group filtering by assigning
* a valid object id. Disable egress filtering by assigning
* SAI_NULL_OBJECT_ID in the attribute value.
*
* @type sai_object_id_t
* @flags CREATE_AND_SET
* @objects SAI_OBJECT_TYPE_ACL_TABLE, SAI_OBJECT_TYPE_ACL_TABLE_GROUP
* @allownull true
* @default SAI_NULL_OBJECT_ID
*/
SAI_TUNNEL_ATTR_EGRESS_ACL,

/**
* @brief End of attributes
*/
Expand Down
5 changes: 4 additions & 1 deletion inc/saitypes.h
Original file line number Diff line number Diff line change
Expand Up @@ -926,7 +926,10 @@ typedef enum _sai_acl_bind_point_type_t
SAI_ACL_BIND_POINT_TYPE_ROUTER_INTF = SAI_ACL_BIND_POINT_TYPE_ROUTER_INTERFACE,

/** Bind Point Type Switch */
SAI_ACL_BIND_POINT_TYPE_SWITCH
SAI_ACL_BIND_POINT_TYPE_SWITCH,

/** Bind Point Type Tunnel */
SAI_ACL_BIND_POINT_TYPE_TUNNEL

} sai_acl_bind_point_type_t;

Expand Down