Skip to content

Commit

Permalink
remove debug message
Browse files Browse the repository at this point in the history
  • Loading branch information
shi-su committed Nov 19, 2020
1 parent fd962aa commit 0451fea
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/sonic-config-engine/data/l2switch.j2
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
{%- if ns.firstPrinted %},{% endif %}

"{{ key }}": {
{%- for k,v in value.items() %}
{%- for keyPort,valuePort in value.items() %}

"{{ k }}": "{{ v }}",
"{{ keyPort }}": "{{ valuePort }}",
{%- endfor %}

"admin_status": "up"
}
{%- if ns.update({'firstPrinted': True}) %}{% endif -%}
Expand Down
2 changes: 0 additions & 2 deletions src/sonic-config-engine/tests/test_j2files.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,6 @@ def test_l2switch_template(self):
template_dir = os.path.join(self.test_dir, '..', 'data', 'l2switch.j2')
argument = '-t ' + template_dir + ' -k Mellanox-SN2700-D48C8 -p ' + self.t0_port_config
output = self.run_script(argument)
print(json.dumps(output_json, sort_keys=True))
print(json.dumps(sample_output_json, sort_keys=True))

self.assertTrue(json.dumps(sample_output_json, sort_keys=True) == json.dumps(output_json, sort_keys=True))

Expand Down

0 comments on commit 0451fea

Please sign in to comment.