Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,2 +1,7 @@
{%- set default_topo = 't1' %}
{# set default_topo based on switch_role #}
{%- if DEVICE_METADATA is defined and 'lowerspinerouter' in DEVICE_METADATA['localhost']['type'].lower() -%}
{%- set default_topo = 'lt2' %}
{%- else %}
{%- set default_topo = 't1' %}
{%- endif %}
{%- include 'buffers_config.j2' %}

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{%- set default_cable = '5m' %}

{%- include 'buffer_ports.j2' %}

{%- macro generate_buffer_pool_and_profiles() %}
"BUFFER_POOL": {
"ingress_lossless_pool": {
"size": "164075364",
"type": "ingress",
"mode": "dynamic",
"xoff": "49418240"
},
"egress_lossless_pool": {
"size": "164075364",
"type": "egress",
"mode": "static"
}
},
"BUFFER_PROFILE": {
"ingress_lossy_profile": {
"pool": "ingress_lossless_pool",
"size": "0",
"static_th": "165364160"
},
"egress_lossy_profile": {
"pool": "egress_lossless_pool",
"size": "1778",
"dynamic_th": "0"
},
"egress_lossless_profile": {
"pool": "egress_lossless_pool",
"size": "0",
"static_th": "165364160"
}
},
{%- endmacro %}
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# PG lossless profiles.
# speed cable size xon xoff threshold xon_offset
400000 5m 18796 0 445770 0 3556
400000 30m 8636 0 425958 0 3356
400000 40m 18796 0 445770 0 3556
400000 150m 18796 0 445770 0 3556
400000 500m 8636 0 1136396 0 3356
100000 500m 8636 0 1136396 0 3356

Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
{%- if DEVICE_METADATA is defined and 'lowerspinerouter' in DEVICE_METADATA['localhost']['type'].lower() -%}

{# Do nothing for lt2 #}

{%- else %}
{%- macro generate_dscp_to_tc_map_per_sku() -%}
"DSCP_TO_TC_MAP": {
"AZURE": {
Expand Down Expand Up @@ -158,4 +163,6 @@
},
{%- endmacro -%}

{%- endif %}

{%- include 'qos_config.j2' %}

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{# Get sai.profile based on switch_role #}
{%- if DEVICE_METADATA is defined -%}
{%- set switch_role = DEVICE_METADATA['localhost']['type'] -%}
{%- if 'lowerspinerouter' in switch_role.lower() %}
{% set sai_profile_contents = 'SAI_INIT_CONFIG_FILE=/usr/share/sonic/hwsku/th5-a7060x6-64pe-lt2.config.bcm' -%}
{%- else %}
{%- set sai_profile_contents = 'SAI_INIT_CONFIG_FILE=/usr/share/sonic/hwsku/th5-a7060x6-64pe.config.bcm' -%}
{%- endif %}
{%- else %}
{%- set sai_profile_contents = 'SAI_INIT_CONFIG_FILE=/usr/share/sonic/hwsku/th5-a7060x6-64pe.config.bcm' -%}
{%- endif %}
{# Write the contents of sai_ profile_filename to sai.profile file #}
{{ sai_profile_contents }}
SAI_NUM_ECMP_MEMBERS=128
SAI_NHG_HIERARCHICAL_NEXTHOP=false

Loading