Skip to content

Commit c962c80

Browse files
committed
Change supporting bulk counter groups to list
Signed-off-by: Stephen Sun <[email protected]>
1 parent cceefca commit c962c80

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

files/build_templates/docker_image_ctl.j2

+1-1
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,7 @@ start() {
437437
fi
438438
SUPPORTING_BULK_COUNTER_GROUPS="$HWSKU_FOLDER/supporting_bulk_counter_groups"
439439
if [ -f "$SUPPORTING_BULK_COUNTER_GROUPS" ]; then
440-
$SONIC_DB_CLI CONFIG_DB HSET 'DEVICE_METADATA|localhost' supporting_bulk_counter_groups $(cat $SUPPORTING_BULK_COUNTER_GROUPS)
440+
$SONIC_DB_CLI CONFIG_DB HSET 'DEVICE_METADATA|localhost' supporting_bulk_counter_groups@ $(cat $SUPPORTING_BULK_COUNTER_GROUPS)
441441
fi
442442
fi
443443
{%- endif %}

files/build_templates/swss_vars.j2

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"resource_type": "{{ DEVICE_METADATA.localhost.resource_type }}",
99
"synchronous_mode": {% if DEVICE_METADATA.localhost.synchronous_mode == "disable" %}"disable"{% else %}"enable"{% endif %},
1010
{%if DEVICE_METADATA.localhost.supporting_bulk_counter_groups is defined and DEVICE_METADATA.localhost.supporting_bulk_counter_groups != '' -%}
11-
"supporting_bulk_counter_groups": "{{ DEVICE_METADATA.localhost.supporting_bulk_counter_groups }}",
11+
"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 %},
1414
"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 %}

0 commit comments

Comments
 (0)