You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The scope of this document covers enhancements on show acl commands, including `show acl table` and `show acl rule`.
14
-
Only dataplane ACL is covered in this design. The enhancement of control plane ACL will be covered in another document,
15
+
Only dataplane ACL is covered in this design. The enhancement of control plane ACL will be covered in another document.
15
16
16
17
### Definitions/Abbreviations
17
18
@@ -37,6 +38,8 @@ This design is to improve the show acl commands to add the status of ACL table o
37
38
38
39
In current implementation, `orchagent` checks return value from SAI, and writes a log to syslog.
39
40
In the proposed design, we introduce a new table to `STATE_DB`, and `orchagent` will write the return status to the `STATE_DB` table. The user can check the status of ACL table or ACL rule creation with CLI `show acl table` or `show acl rule`. The `show` command reads the status from `STATE_DB`, and reads configuration from `CONFIG_DB`, and finally combine the status and configuration in the output.
41
+
42
+
The proposed change doesn't cover the internally added ACL table or ACL rule, such as the ACL table/rule added by PFC handler or Mux handler in dualtor setup. That is because the table/rule is not added by `CONFIG_DB` entries. Hence the show command can't find the corresponding configuration in `CONFIG_DB`.
40
43
<palign=center>
41
44
<imgsrc="img/acl-work-flow-with-state-db.png"alt="Figure 2. ACL work flow with STATE_DB">
Add logic in `aclorch` to support writing return status into `STATE_DB`. When ACL table or ACL rule is being deleted, the corresponding entry in `STATE_DB` is also cleared.
@@ -87,9 +90,9 @@ DATAACL L3 Ethernet0 DATAACL ingress Active
0 commit comments