sonic-swss
sonic-swss copied to clipboard
[ACL] Inconsistency between ASIC and config DB
Performing the bellow commands will cause to inconsistency between ASIC and config DB.
config acl add table -p Ethernet72 -s ingress DATAACL L3 config acl update full /tmp/56521_acl_file.json config acl add table -p Ethernet72 -s egress DATAACL L3
At this point, ASIC is configured with ACL table DATAACL with no rules but in config DB, table DATAACL exist with rules.
redis-cli -n 4 keys *ACL*
- "ACL_RULE|DATAACL|DEFAULT_RULE"
- "ACL_RULE|DATAACL|RULE_2"
- "ACL_RULE|DATAACL|RULE_1"
- "ACL_TABLE|DATAACL"
- "FLEX_COUNTER_TABLE|ACL"
redis-cli -n 4 hgetall "ACL_RULE|DATAACL|RULE_2"
- "ETHER_TYPE"
- "2048"
- "PACKET_ACTION"
- "FORWARD"
- "PRIORITY"
- "9998"
- "SRC_IP"
- "0.0.0.0/0"
redis-cli -n 4 hgetall "ACL_RULE|DATAACL|RULE_1"
- "ETHER_TYPE"
- "2048"
- "PACKET_ACTION"
- "DROP"
- "PRIORITY"
- "9999"
- "SRC_IP"
- "1.0.1.1/32"