Skip to content

Commit

Permalink
Enable synchronous mode by default and add in minigraph parser (#5735)
Browse files Browse the repository at this point in the history
  • Loading branch information
shi-su authored Oct 29, 2020
1 parent 42d2bf1 commit 5ee5c13
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion files/build_templates/swss_vars.j2
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
"asic_type": "{{ asic_type }}",
"asic_id": "{{ DEVICE_METADATA.localhost.asic_id }}",
"mac": "{{ DEVICE_METADATA.localhost.mac }}",
"synchronous_mode": {% if DEVICE_METADATA.localhost.synchronous_mode == "enable" %}"enable"{% else %}"disable"{% endif %}
"synchronous_mode": {% if DEVICE_METADATA.localhost.synchronous_mode == "disable" %}"disable"{% else %}"enable"{% endif %}
}
3 changes: 2 additions & 1 deletion src/sonic-config-engine/minigraph.py
Original file line number Diff line number Diff line change
Expand Up @@ -967,7 +967,8 @@ def parse_xml(filename, platform=None, port_config_file=None, asic_name=None, hw
'docker_routing_config_mode': docker_routing_config_mode,
'hostname': hostname,
'hwsku': hwsku,
'type': device_type
'type': device_type,
'synchronous_mode': 'enable'
}
}
# for this hostname, if sub_role is defined, add sub_role in
Expand Down

0 comments on commit 5ee5c13

Please sign in to comment.