Skip to content

Commit bdc0e84

Browse files
Enable ZMQ between orchagent and syncd for smartswitch DPUs
* Add device type to swss_vars template * Set redis communication mode to zmq_sync for DPU device type Signed-off-by: Prabhat Aravind <paravind@microsoft.com>
1 parent d1bc245 commit bdc0e84

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

dockers/docker-orchagent/orchagent.sh

+4-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,10 @@ fi
3030

3131
# Set synchronous mode if it is enabled in CONFIG_DB
3232
SYNC_MODE=$(echo $SWSS_VARS | jq -r '.synchronous_mode')
33-
if [ "$SYNC_MODE" == "enable" ]; then
33+
DEVICE_TYPE=$(echo $SWSS_VARS | jq -r '.type')
34+
if [ "$DEVICE_TYPE" == "SonicDpu" ]; then
35+
ORCHAGENT_ARGS+="-z zmq_sync "
36+
elif [ "$SYNC_MODE" == "enable" ]; then
3437
ORCHAGENT_ARGS+="-s "
3538
fi
3639

files/build_templates/swss_vars.j2

+2-1
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,6 @@
1111
"supporting_bulk_counter_groups": "{{ DEVICE_METADATA.localhost.supporting_bulk_counter_groups|join(',') }}",
1212
{% endif -%}
1313
"dual_tor": {% if DEVICE_METADATA.localhost.type == "ToRRouter" and DEVICE_METADATA.localhost.subtype == "DualToR" %}"enable"{% else %}"disable"{% endif %},
14-
"dscp_remapping": {% if SYSTEM_DEFAULTS is defined and SYSTEM_DEFAULTS.tunnel_qos_remap is defined and SYSTEM_DEFAULTS.tunnel_qos_remap.status == "enabled" %}"enable"{% else %}"disable"{% endif %}
14+
"dscp_remapping": {% if SYSTEM_DEFAULTS is defined and SYSTEM_DEFAULTS.tunnel_qos_remap is defined and SYSTEM_DEFAULTS.tunnel_qos_remap.status == "enabled" %}"enable"{% else %}"disable"{% endif %},
15+
"type": "{{ DEVICE_METADATA.localhost.type }}"
1516
}

0 commit comments

Comments
 (0)