2019-09-20 09:26:40 -05:00
|
|
|
{# Get sai.profile based on switch_role #}
|
|
|
|
{%- if DEVICE_METADATA is defined and DEVICE_METADATA['localhost'] is defined and DEVICE_METADATA['localhost']['type'] is defined -%}
|
|
|
|
{%- set switch_role = DEVICE_METADATA['localhost']['type'] -%}
|
2020-11-10 17:06:35 -06:00
|
|
|
{%- if 'torrouter' in switch_role.lower() %}
|
2019-09-20 09:26:40 -05:00
|
|
|
{% set sai_profile_contents = 'SAI_INIT_CONFIG_FILE=/usr/share/sonic/hwsku/th-seastone-dx010-32x100G-t0.config.bcm' -%}
|
|
|
|
{%- else %}
|
|
|
|
{% set sai_profile_contents = 'SAI_INIT_CONFIG_FILE=/usr/share/sonic/hwsku/th-seastone-dx010-32x100G-t1.config.bcm' -%}
|
|
|
|
{%- endif %}
|
|
|
|
{%- else %}
|
|
|
|
{% set sai_profile_contents = 'SAI_INIT_CONFIG_FILE=/usr/share/sonic/hwsku/th-seastone-dx010-32x100G-t1.config.bcm' -%}
|
|
|
|
{%- endif %}
|
|
|
|
{# Write the contents of sai_ profile_filename to sai.profile file #}
|
|
|
|
{{ sai_profile_contents }}
|
2020-09-22 13:21:12 -05:00
|
|
|
SAI_NUM_ECMP_MEMBERS=64
|