Skip to content

Commit fac5e20

Browse files
gechiangdaall
authored andcommitted
7260cx3 DualToR config.bcm support based on DualToR setting in device metadata at boot time (#7168)
* 7260cx3 DualToR config.bcm support based on DualToR setting in device metadata at boot time. For HWSKU Arista-7260CX3-C64 the MMU setting SOC for T0/T1 is also combined into the config.bcm.j2 logic so use just one config file and adding delta based on Switch Roles.
1 parent d7b4c62 commit fac5e20

File tree

9 files changed

+63
-1032
lines changed

9 files changed

+63
-1032
lines changed
Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,24 @@
1+
{# Construct config.bcm to include additional soc properties per specific device metadata requirement #}
2+
{%- set mmu_sock = 'mmu_init_config="MSFT-TH2-Tier1"' -%}
3+
{%- set IPinIP_sock = '' -%}
4+
{%- if DEVICE_METADATA is defined and DEVICE_METADATA['localhost'] is defined -%}
5+
{%- if DEVICE_METADATA['localhost']['type'] is defined -%}
6+
{%- set switch_role = DEVICE_METADATA['localhost']['type'] -%}
7+
{%- if 'torrouter' in switch_role.lower() or 'torswitch' in switch_role.lower() %}
8+
{%- set mmu_sock = 'mmu_init_config="MSFT-TH2-Tier0"' -%}
9+
{%- endif %}
10+
{%- endif %}
11+
{%- if DEVICE_METADATA['localhost']['subtype'] is defined -%}
12+
{%- set switch_subtype = DEVICE_METADATA['localhost']['subtype'] -%}
13+
{%- if 'dualtor' in switch_subtype.lower() %}
14+
{%- set IPinIP_sock = 'sai_tunnel_support=1
15+
host_as_route_disable=1
16+
l3_ecmp_levels=2' -%}
17+
{%- endif %}
18+
{%- endif %}
19+
{%- endif %}
20+
{# The following is the common soc properties that used to be named "th2-a7260cx3-64-64x100G-t1.config.bcm" #}
21+
122
PHY_AN_ALLOW_PLL_CHANGE=1
223
arl_clean_timeout_usec=15000000
324
asf_mem_profile=2
@@ -1012,4 +1033,5 @@ serdes_preemphasis_115=0x184606
10121033
serdes_preemphasis_116=0x103706
10131034
serdes_preemphasis_117=0x133c06
10141035

1015-
mmu_init_config="MSFT-TH2-Tier0"
1036+
{{ mmu_sock }}
1037+
{{ IPinIP_sock }}
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
SAI_INIT_CONFIG_FILE=/etc/sai.d/config.bcm
2+
SAI_NUM_ECMP_MEMBERS=64

device/arista/x86_64-arista_7260cx3_64/Arista-7260CX3-C64/sai.profile.j2

Lines changed: 0 additions & 14 deletions
This file was deleted.

0 commit comments

Comments
 (0)