Skip to content

Commit 15cc046

Browse files
authored
[202012] Update MMU and ECN settings for Arista-7260CX3-D96C16 (sonic-net#11427)
Signed-off-by: Neetha John <[email protected]> Why I did it Missed this sku in the previous PR sonic-net#11398 How I did it Update the dynamic threshold to 0 and ECN settings as 2mb/10mb/5% How to verify it Updated unit tests to use the modified values for 7260 ecn settings.
1 parent aa4379d commit 15cc046

File tree

5 files changed

+31
-6
lines changed

5 files changed

+31
-6
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# PG lossless profiles.
22
# speed cable size xon xoff threshold xon_offset
3-
50000 5m 1248 1248 56160 -3 2496
4-
100000 5m 1248 1248 96928 -3 2496
5-
50000 40m 1248 1248 96096 -3 2496
6-
100000 40m 1248 1248 177632 -3 2496
7-
50000 300m 1248 1248 141856 -3 2496
8-
100000 300m 1248 1248 268736 -3 2496
3+
50000 5m 1248 1248 56160 0 2496
4+
100000 5m 1248 1248 96928 0 2496
5+
50000 40m 1248 1248 96096 0 2496
6+
100000 40m 1248 1248 177632 0 2496
7+
50000 300m 1248 1248 141856 0 2496
8+
100000 300m 1248 1248 268736 0 2496
Original file line numberDiff line numberDiff line change
@@ -1 +1,21 @@
1+
{%- macro generate_wred_profiles() %}
2+
"WRED_PROFILE": {
3+
"AZURE_LOSSLESS" : {
4+
"wred_green_enable" : "true",
5+
"wred_yellow_enable" : "true",
6+
"wred_red_enable" : "true",
7+
"ecn" : "ecn_all",
8+
"green_max_threshold" : "10000000",
9+
"green_min_threshold" : "2000000",
10+
"yellow_max_threshold" : "2097152",
11+
"yellow_min_threshold" : "1048576",
12+
"red_max_threshold" : "2097152",
13+
"red_min_threshold" : "1048576",
14+
"green_drop_probability" : "5",
15+
"yellow_drop_probability": "5",
16+
"red_drop_probability" : "5"
17+
}
18+
},
19+
{%- endmacro %}
20+
121
{%- include 'qos_config.j2' %}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../py3/qos-arista7260-t1-remap-disabled.json
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
qos-arista7260-t1-remap-disabled.json

src/sonic-config-engine/tests/test_j2files.py

+3
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,9 @@ def test_qos_dell9332_render_template(self):
238238
def test_qos_dell6100_render_template(self):
239239
self._test_qos_render_template('dell', 'x86_64-dell_s6100_c2538-r0', 'Force10-S6100', 'sample-dell-6100-t0-minigraph.xml', 'qos-dell6100.json')
240240

241+
def test_qos_arista7260_render_template(self):
242+
self._test_qos_render_template('arista', 'x86_64-arista_7260cx3_64', 'Arista-7260CX3-D96C16', 'sample-arista-7260-t1-minigraph-remap-disabled.xml', 'qos-arista7260.json')
243+
241244
def _test_qos_render_template(self, vendor, platform, sku, minigraph, expected):
242245
file_exist, dir_exist = self.create_machine_conf(platform, vendor)
243246
dir_path = os.path.join(self.test_dir, '..', '..', '..', 'device', vendor, platform, sku)

0 commit comments

Comments
 (0)