diff --git a/src/sonic-config-engine/tests/sample_output/table_dataacl.json b/src/sonic-config-engine/tests/sample_output/table_dataacl.json index ed10f3195636..a099680821d4 100644 --- a/src/sonic-config-engine/tests/sample_output/table_dataacl.json +++ b/src/sonic-config-engine/tests/sample_output/table_dataacl.json @@ -1,6 +1,6 @@ [ { - "ACL_TABLE:dataacl":{ + "ACL_TABLE:DATAACL":{ "policy_desc":"dataacl", "ports":"Ethernet112,Ethernet116,Ethernet120,Ethernet124", "type":"L3" diff --git a/src/sonic-config-engine/tests/sample_output/table_everflow.json b/src/sonic-config-engine/tests/sample_output/table_everflow.json index 4f3411ed8874..9686f8e3890d 100644 --- a/src/sonic-config-engine/tests/sample_output/table_everflow.json +++ b/src/sonic-config-engine/tests/sample_output/table_everflow.json @@ -1,6 +1,6 @@ [ { - "ACL_TABLE:everflow":{ + "ACL_TABLE:EVERFLOW":{ "policy_desc":"everflow", "ports":"Ethernet24,Ethernet40,Ethernet20,Ethernet44,Ethernet48,Ethernet28,Ethernet96,Ethernet92,Ethernet76,Ethernet116,Ethernet72,Ethernet112,Ethernet52,Ethernet108,Ethernet56,Ethernet32,Ethernet16,Ethernet36,Ethernet12,Ethernet120,Ethernet8,Ethernet4,Ethernet0,Ethernet124,Ethernet68,Ethernet84,Ethernet100,Ethernet80,Ethernet60,Ethernet104,Ethernet64,Ethernet88", "type":"mirror" diff --git a/src/sonic-config-engine/translate_acl b/src/sonic-config-engine/translate_acl index 696a433730a9..5525eff96774 100755 --- a/src/sonic-config-engine/translate_acl +++ b/src/sonic-config-engine/translate_acl @@ -120,7 +120,7 @@ def generate_table_json(aclset, aclname, ports, mirror, max_priority, output_pat table_props["ports"] = ports table_data = [{}] - table_data[0]["ACL_TABLE:"+table_name] = table_props + table_data[0]["ACL_TABLE:"+table_name.upper()] = table_props table_data[0]["OP"] = "SET" dump_json(os.path.join(output_path, "table_"+table_name+".json"), table_data)