Skip to content

Commit

Permalink
[acl_loader]: Do not apply default DENY rule for MIRRORV6 table (soni…
Browse files Browse the repository at this point in the history
…c-net#522)

Default deny rule shall not be applied for neither MIRROR nor MIRRORV6

Signed-off-by: Shu0T1an ChenG <[email protected]>
  • Loading branch information
Shuotian Cheng authored May 22, 2019
1 parent 50b7256 commit f95ff00
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions acl_loader/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,11 +180,11 @@ def is_table_valid(self, tname):

def is_table_mirror(self, tname):
"""
Check if ACL table type is ACL_TABLE_TYPE_MIRROR
Check if ACL table type is ACL_TABLE_TYPE_MIRROR or ACL_TABLE_TYPE_MIRRORV6
:param tname: ACL table name
:return: True if table type is ACL_TABLE_TYPE_MIRROR else False
:return: True if table type is MIRROR or MIRRORV6 else False
"""
return self.tables_db_info[tname]['type'].upper() == self.ACL_TABLE_TYPE_MIRROR
return self.tables_db_info[tname]['type'].upper().startswith(self.ACL_TABLE_TYPE_MIRROR)

def is_table_control_plane(self, tname):
"""
Expand Down

0 comments on commit f95ff00

Please sign in to comment.