mirror of
https://github.com/Telecominfraproject/ols-nos.git
synced 2025-11-02 02:57:45 +00:00
Add a master switch so that the sync/async mode can be configured.
Example usage of the switch:
1. Configure mode while building an image
`make ENABLE_SYNCHRONOUS_MODE=y <target>`
2. Configure when the device is running
Change CONFIG_DB with `sonic-cfggen -a '{"DEVICE_METADATA":{"localhost": {"synchronous_mode": "enable"}}}' --write-to-db`
Restart swss with `systemctl restart swss`
8 lines
224 B
Django/Jinja
8 lines
224 B
Django/Jinja
{
|
|
"asic_type": "{{ asic_type }}",
|
|
"asic_id": "{{ DEVICE_METADATA.localhost.asic_id }}",
|
|
"mac": "{{ DEVICE_METADATA.localhost.mac }}",
|
|
"synchronous_mode": "{{ DEVICE_METADATA.localhost.synchronous_mode }}"
|
|
}
|
|
|