Update backend_acl.py to specify ACL table name (#17553) (#17673)

This commit is contained in:
mssonicbld 2024-01-04 23:10:28 +08:00 committed by GitHub
parent b72a74047e
commit 76d8ff06b3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -78,7 +78,7 @@ def load_backend_acl(device_type):
if os.path.isfile(BACKEND_ACL_TEMPLATE_FILE):
run_command(['sudo', SONIC_CFGGEN_PATH, '-d', '-t', '{},{}'.format(BACKEND_ACL_TEMPLATE_FILE, BACKEND_ACL_FILE)])
if os.path.isfile(BACKEND_ACL_FILE):
run_command(['acl-loader', 'update', 'incremental', BACKEND_ACL_FILE])
run_command(['acl-loader', 'update', 'full', BACKEND_ACL_FILE, '--table_name', 'DATAACL'])
else:
log_info("Skipping backend acl load - conditions not met")