ea08207b18
However in SAI 3.7 default behaviout got changes to 128 Group and 128 Memeber each. This change is to make sure we are using same ECMP Group/Memeber Per Group for 3.7 also so that behaviour is consistent. Signed-off-by: Abhishek Dosi <abdosi@microsoft.com>
15 lines
728 B
Django/Jinja
15 lines
728 B
Django/Jinja
{# Get sai.profile based on switch_role #}
|
|
{%- if DEVICE_METADATA is defined -%}
|
|
{%- set switch_role = DEVICE_METADATA['localhost']['type'] -%}
|
|
{%- if switch_role.lower() == 'torrouter' %}
|
|
{% set sai_profile_contents = 'SAI_INIT_CONFIG_FILE=/usr/share/sonic/hwsku/th-s6100-64x40G-t0.config.bcm' -%}
|
|
{%- else %}
|
|
{%- set sai_profile_contents = 'SAI_INIT_CONFIG_FILE=/usr/share/sonic/hwsku/th-s6100-64x40G-t1.config.bcm' -%}
|
|
{%- endif %}
|
|
{%- else %}
|
|
{%- set sai_profile_contents = 'SAI_INIT_CONFIG_FILE=/usr/share/sonic/hwsku/th-s6100-64x40G-t1.config.bcm' -%}
|
|
{%- endif %}
|
|
{# Write the contents of sai_ profile_filename to sai.profile file #}
|
|
{{ sai_profile_contents }}
|
|
SAI_NUM_ECMP_MEMBERS=64
|