def setup_rules(self, dut, acl_table, ip_version):
    'Setup ACL rules for testing.\n\n        Args:\n            dut: The DUT having ACLs applied.\n            acl_table: Configuration info for the ACL table.\n\n        '
    table_name = acl_table['table_name']
    dut.host.options['variable_manager'].extra_vars.update({'acl_table_name': table_name})
    logger.info('Generating basic ACL rules config for ACL table "{}" on {}'.format(table_name, dut))
    dut_conf_file_path = os.path.join(DUT_TMP_DIR, 'acl_rules_{}.json'.format(table_name))
    dut.template(src=os.path.join(TEMPLATE_DIR, ACL_RULES_FULL_TEMPLATE[ip_version]), dest=dut_conf_file_path)
    logger.info('Applying ACL rules config "{}"'.format(dut_conf_file_path))
    dut.command('config acl update full {}'.format(dut_conf_file_path))
Setup ACL rules for testing.

Args:
    dut: The DUT having ACLs applied.
    acl_table: Configuration info for the ACL table.
def setup_rules(self, dut, acl_table, ip_version):
    'Setup ACL rules for testing.\n\n        Args:\n            dut: The DUT having ACLs applied.\n            acl_table: Configuration info for the ACL table.\n\n        '
    table_name = acl_table['table_name']
    dut.host.options['variable_manager'].extra_vars.update({'acl_table_name': table_name})
    logger.info('Generating basic ACL rules config for ACL table "{}" on {}'.format(table_name, dut))
    dut_conf_file_path = os.path.join(DUT_TMP_DIR, 'acl_rules_{}.json'.format(table_name))
    dut.template(src=os.path.join(TEMPLATE_DIR, ACL_RULES_FULL_TEMPLATE[ip_version]), dest=dut_conf_file_path)
    logger.info('Applying ACL rules config "{}"'.format(dut_conf_file_path))
    dut.command('config acl update full {}'.format(dut_conf_file_path))