Skip to content

Commit f95ff00

Browse files
author
Shuotian Cheng
authored
[acl_loader]: Do not apply default DENY rule for MIRRORV6 table (sonic-net#522)
Default deny rule shall not be applied for neither MIRROR nor MIRRORV6 Signed-off-by: Shu0T1an ChenG <[email protected]>
1 parent 50b7256 commit f95ff00

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

acl_loader/main.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -180,11 +180,11 @@ def is_table_valid(self, tname):
180180

181181
def is_table_mirror(self, tname):
182182
"""
183-
Check if ACL table type is ACL_TABLE_TYPE_MIRROR
183+
Check if ACL table type is ACL_TABLE_TYPE_MIRROR or ACL_TABLE_TYPE_MIRRORV6
184184
:param tname: ACL table name
185-
:return: True if table type is ACL_TABLE_TYPE_MIRROR else False
185+
:return: True if table type is MIRROR or MIRRORV6 else False
186186
"""
187-
return self.tables_db_info[tname]['type'].upper() == self.ACL_TABLE_TYPE_MIRROR
187+
return self.tables_db_info[tname]['type'].upper().startswith(self.ACL_TABLE_TYPE_MIRROR)
188188

189189
def is_table_control_plane(self, tname):
190190
"""

0 commit comments

Comments
 (0)