Skip to content

Commit

Permalink
Fix ACL json translation (#794)
Browse files Browse the repository at this point in the history
* Fix ACL json translation

* Fix json translation tests
  • Loading branch information
andriymoroz-mlnx authored and lguohan committed Jul 7, 2017
1 parent 18627bc commit 1248cc8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[
{
"ACL_TABLE:dataacl":{
"ACL_TABLE:DATAACL":{
"policy_desc":"dataacl",
"ports":"Ethernet112,Ethernet116,Ethernet120,Ethernet124",
"type":"L3"
Expand Down
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
2 changes: 1 addition & 1 deletion src/sonic-config-engine/translate_acl
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 1248cc8

Please sign in to comment.