From f95ff0016887ab3e43fec22367fe0d86040c7fa3 Mon Sep 17 00:00:00 2001 From: Shuotian Cheng Date: Wed, 22 May 2019 11:19:58 -0700 Subject: [PATCH] [acl_loader]: Do not apply default DENY rule for MIRRORV6 table (#522) Default deny rule shall not be applied for neither MIRROR nor MIRRORV6 Signed-off-by: Shu0T1an ChenG --- acl_loader/main.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/acl_loader/main.py b/acl_loader/main.py index e67d3467c793..611229fe7ee6 100644 --- a/acl_loader/main.py +++ b/acl_loader/main.py @@ -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): """