-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
1,075 additions
and
2 deletions.
There are no files selected for viewing
46 changes: 46 additions & 0 deletions
46
device/arista/x86_64-arista_7260cx3_64/Arista-7260CX3-C64/buffers_defaults_t0.j2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
{%- set default_cable = '5m' %} | ||
|
||
{%- macro generate_port_lists(PORT_ALL) %} | ||
{# Generate list of ports #} | ||
{%- for port_idx in range(0,64) %} | ||
{%- if PORT_ALL.append("Ethernet%d" % (port_idx * 4)) %}{%- endif %} | ||
{%- endfor %} | ||
{%- endmacro %} | ||
|
||
{%- macro generate_buffer_pool_and_profiles() %} | ||
"BUFFER_POOL": { | ||
"ingress_lossless_pool": { | ||
"size": "33329088", | ||
"type": "ingress", | ||
"mode": "dynamic", | ||
"xoff": "7827456" | ||
}, | ||
"egress_lossy_pool": { | ||
"size": "26663272", | ||
"type": "egress", | ||
"mode": "dynamic" | ||
}, | ||
"egress_lossless_pool": { | ||
"size": "42349632", | ||
"type": "egress", | ||
"mode": "static" | ||
} | ||
}, | ||
"BUFFER_PROFILE": { | ||
"ingress_lossy_profile": { | ||
"pool":"[BUFFER_POOL|ingress_lossless_pool]", | ||
"size":"0", | ||
"static_th":"44302336" | ||
}, | ||
"egress_lossless_profile": { | ||
"pool":"[BUFFER_POOL|egress_lossless_pool]", | ||
"size":"0", | ||
"static_th":"42349632" | ||
}, | ||
"egress_lossy_profile": { | ||
"pool":"[BUFFER_POOL|egress_lossy_pool]", | ||
"size":"1664", | ||
"dynamic_th":"-1" | ||
} | ||
}, | ||
{%- endmacro %} |
2 changes: 0 additions & 2 deletions
2
device/arista/x86_64-arista_7260cx3_64/Arista-7260CX3-C64/sai.profile
This file was deleted.
Oops, something went wrong.
14 changes: 14 additions & 0 deletions
14
device/arista/x86_64-arista_7260cx3_64/Arista-7260CX3-C64/sai.profile.j2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{# Get sai.profile based on switch_role #} | ||
{%- if DEVICE_METADATA is defined -%} | ||
{%- set switch_role = DEVICE_METADATA['localhost']['type'] -%} | ||
{%- if 'torrouter' in switch_role.lower() or 'torswitch' in switch_role.lower() %} | ||
{% set sai_profile_contents = 'SAI_INIT_CONFIG_FILE=/usr/share/sonic/hwsku/th2-a7260cx3-64-64x100G-t0.config.bcm' -%} | ||
{%- else %} | ||
{% set sai_profile_contents = 'SAI_INIT_CONFIG_FILE=/usr/share/sonic/hwsku/th2-a7260cx3-64-64x100G-t1.config.bcm' -%} | ||
{%- endif %} | ||
{%- else %} | ||
{% set sai_profile_contents = 'SAI_INIT_CONFIG_FILE=/usr/share/sonic/hwsku/th2-a7260cx3-64-64x100G-t1.config.bcm' -%} | ||
{%- endif %} | ||
{# Write the contents of sai_ profile_filename to sai.profile file #} | ||
{{ sai_profile_contents }} | ||
SAI_NUM_ECMP_MEMBERS=64 |
Oops, something went wrong.