From 41cd22d04e2252d421ce1e154260e3fc3cd4ea17 Mon Sep 17 00:00:00 2001
From: vmittal-msft <46945843+vmittal-msft@users.noreply.github.com>
Date: Thu, 22 Jun 2023 08:17:45 -0700
Subject: [PATCH] Updated default ECN settings for T2 chassis (#15541)
* Updated default ECN settings for T2 chassis (#14388)
Why I did it
Update ECN settings for T2 chassis
How I did it
Updated qos config file to load these settings during switch bootup
How to verify it
Verified on line card on T2 chassis
* Fix for test failures
* Test case failures
* test case fix
---
.../Arista-7800R3-48CQ2-C48/qos.json.j2 | 20 +++++++++++++++++++
.../Arista-7800R3-48CQM2-C48/qos.json.j2 | 20 +++++++++++++++++++
.../Arista-7800R3A-36D2-C36/0/qos.json.j2 | 20 +++++++++++++++++++
.../Arista-7800R3A-36D2-C36/1/qos.json.j2 | 20 +++++++++++++++++++
.../Arista-7800R3A-36D2-C72/0/qos.json.j2 | 20 +++++++++++++++++++
.../Arista-7800R3A-36D2-C72/1/qos.json.j2 | 20 +++++++++++++++++++
.../Arista-7800R3A-36D2-D36/0/qos.json.j2 | 20 +++++++++++++++++++
.../Arista-7800R3A-36D2-D36/1/qos.json.j2 | 20 +++++++++++++++++++
.../Nokia-IXR7250E-36x100G/0/qos.json.j2 | 20 +++++++++++++++++++
.../Nokia-IXR7250E-36x100G/1/qos.json.j2 | 20 +++++++++++++++++++
.../Nokia-IXR7250E-36x400G/0/qos.json.j2 | 20 +++++++++++++++++++
.../Nokia-IXR7250E-36x400G/1/qos.json.j2 | 20 +++++++++++++++++++
...ista-7800r3a-36dm2-c36-lc-t2-minigraph.xml | 2 --
...ista-7800r3a-36dm2-d36-lc-t2-minigraph.xml | 2 --
...le-nokia-ixr7250e-36x100g-t2-minigraph.xml | 2 --
...le-nokia-ixr7250e-36x400g-t2-minigraph.xml | 2 --
.../py2/qos-arista7800r3-48cq2-lc.json | 12 +++++------
.../py2/qos-arista7800r3-48cqm2-lc.json | 12 +++++------
.../py2/qos-arista7800r3a-36dm2-c36-lc.json | 12 +++++------
.../py2/qos-arista7800r3a-36dm2-d36-lc.json | 12 +++++------
.../py2/qos-nokia-ixr7250e-36x100g.json | 12 +++++------
.../py2/qos-nokia-ixr7250e-36x400g.json | 12 +++++------
.../py3/qos-arista7800r3-48cq2-lc.json | 12 +++++------
.../py3/qos-arista7800r3-48cqm2-lc.json | 12 +++++------
.../py3/qos-arista7800r3a-36dm2-c36-lc.json | 12 +++++------
.../py3/qos-arista7800r3a-36dm2-d36-lc.json | 12 +++++------
.../py3/qos-nokia-ixr7250e-36x100g.json | 12 +++++------
.../py3/qos-nokia-ixr7250e-36x400g.json | 12 +++++------
src/sonic-config-engine/tests/test_j2files.py | 2 ++
29 files changed, 314 insertions(+), 80 deletions(-)
diff --git a/device/arista/x86_64-arista_7800r3_48cq2_lc/Arista-7800R3-48CQ2-C48/qos.json.j2 b/device/arista/x86_64-arista_7800r3_48cq2_lc/Arista-7800R3-48CQ2-C48/qos.json.j2
index 3e548325ea..411942ab52 100644
--- a/device/arista/x86_64-arista_7800r3_48cq2_lc/Arista-7800R3-48CQ2-C48/qos.json.j2
+++ b/device/arista/x86_64-arista_7800r3_48cq2_lc/Arista-7800R3-48CQ2-C48/qos.json.j2
@@ -1 +1,21 @@
+{%- macro generate_wred_profiles() %}
+ "WRED_PROFILE": {
+ "AZURE_LOSSLESS" : {
+ "wred_green_enable" : "true",
+ "wred_yellow_enable" : "true",
+ "wred_red_enable" : "true",
+ "ecn" : "ecn_all",
+ "green_max_threshold" : "10000000",
+ "green_min_threshold" : "2000000",
+ "yellow_max_threshold" : "10000000",
+ "yellow_min_threshold" : "2000000",
+ "red_max_threshold" : "10000000",
+ "red_min_threshold" : "2000000",
+ "green_drop_probability" : "5",
+ "yellow_drop_probability": "5",
+ "red_drop_probability" : "5"
+ }
+ },
+{%- endmacro %}
+
{%- include 'qos_config.j2' %}
diff --git a/device/arista/x86_64-arista_7800r3_48cqm2_lc/Arista-7800R3-48CQM2-C48/qos.json.j2 b/device/arista/x86_64-arista_7800r3_48cqm2_lc/Arista-7800R3-48CQM2-C48/qos.json.j2
index 3e548325ea..411942ab52 100644
--- a/device/arista/x86_64-arista_7800r3_48cqm2_lc/Arista-7800R3-48CQM2-C48/qos.json.j2
+++ b/device/arista/x86_64-arista_7800r3_48cqm2_lc/Arista-7800R3-48CQM2-C48/qos.json.j2
@@ -1 +1,21 @@
+{%- macro generate_wred_profiles() %}
+ "WRED_PROFILE": {
+ "AZURE_LOSSLESS" : {
+ "wred_green_enable" : "true",
+ "wred_yellow_enable" : "true",
+ "wred_red_enable" : "true",
+ "ecn" : "ecn_all",
+ "green_max_threshold" : "10000000",
+ "green_min_threshold" : "2000000",
+ "yellow_max_threshold" : "10000000",
+ "yellow_min_threshold" : "2000000",
+ "red_max_threshold" : "10000000",
+ "red_min_threshold" : "2000000",
+ "green_drop_probability" : "5",
+ "yellow_drop_probability": "5",
+ "red_drop_probability" : "5"
+ }
+ },
+{%- endmacro %}
+
{%- include 'qos_config.j2' %}
diff --git a/device/arista/x86_64-arista_7800r3a_36d2_lc/Arista-7800R3A-36D2-C36/0/qos.json.j2 b/device/arista/x86_64-arista_7800r3a_36d2_lc/Arista-7800R3A-36D2-C36/0/qos.json.j2
index 3e548325ea..411942ab52 100644
--- a/device/arista/x86_64-arista_7800r3a_36d2_lc/Arista-7800R3A-36D2-C36/0/qos.json.j2
+++ b/device/arista/x86_64-arista_7800r3a_36d2_lc/Arista-7800R3A-36D2-C36/0/qos.json.j2
@@ -1 +1,21 @@
+{%- macro generate_wred_profiles() %}
+ "WRED_PROFILE": {
+ "AZURE_LOSSLESS" : {
+ "wred_green_enable" : "true",
+ "wred_yellow_enable" : "true",
+ "wred_red_enable" : "true",
+ "ecn" : "ecn_all",
+ "green_max_threshold" : "10000000",
+ "green_min_threshold" : "2000000",
+ "yellow_max_threshold" : "10000000",
+ "yellow_min_threshold" : "2000000",
+ "red_max_threshold" : "10000000",
+ "red_min_threshold" : "2000000",
+ "green_drop_probability" : "5",
+ "yellow_drop_probability": "5",
+ "red_drop_probability" : "5"
+ }
+ },
+{%- endmacro %}
+
{%- include 'qos_config.j2' %}
diff --git a/device/arista/x86_64-arista_7800r3a_36d2_lc/Arista-7800R3A-36D2-C36/1/qos.json.j2 b/device/arista/x86_64-arista_7800r3a_36d2_lc/Arista-7800R3A-36D2-C36/1/qos.json.j2
index 3e548325ea..411942ab52 100644
--- a/device/arista/x86_64-arista_7800r3a_36d2_lc/Arista-7800R3A-36D2-C36/1/qos.json.j2
+++ b/device/arista/x86_64-arista_7800r3a_36d2_lc/Arista-7800R3A-36D2-C36/1/qos.json.j2
@@ -1 +1,21 @@
+{%- macro generate_wred_profiles() %}
+ "WRED_PROFILE": {
+ "AZURE_LOSSLESS" : {
+ "wred_green_enable" : "true",
+ "wred_yellow_enable" : "true",
+ "wred_red_enable" : "true",
+ "ecn" : "ecn_all",
+ "green_max_threshold" : "10000000",
+ "green_min_threshold" : "2000000",
+ "yellow_max_threshold" : "10000000",
+ "yellow_min_threshold" : "2000000",
+ "red_max_threshold" : "10000000",
+ "red_min_threshold" : "2000000",
+ "green_drop_probability" : "5",
+ "yellow_drop_probability": "5",
+ "red_drop_probability" : "5"
+ }
+ },
+{%- endmacro %}
+
{%- include 'qos_config.j2' %}
diff --git a/device/arista/x86_64-arista_7800r3a_36d2_lc/Arista-7800R3A-36D2-C72/0/qos.json.j2 b/device/arista/x86_64-arista_7800r3a_36d2_lc/Arista-7800R3A-36D2-C72/0/qos.json.j2
index 3e548325ea..411942ab52 100644
--- a/device/arista/x86_64-arista_7800r3a_36d2_lc/Arista-7800R3A-36D2-C72/0/qos.json.j2
+++ b/device/arista/x86_64-arista_7800r3a_36d2_lc/Arista-7800R3A-36D2-C72/0/qos.json.j2
@@ -1 +1,21 @@
+{%- macro generate_wred_profiles() %}
+ "WRED_PROFILE": {
+ "AZURE_LOSSLESS" : {
+ "wred_green_enable" : "true",
+ "wred_yellow_enable" : "true",
+ "wred_red_enable" : "true",
+ "ecn" : "ecn_all",
+ "green_max_threshold" : "10000000",
+ "green_min_threshold" : "2000000",
+ "yellow_max_threshold" : "10000000",
+ "yellow_min_threshold" : "2000000",
+ "red_max_threshold" : "10000000",
+ "red_min_threshold" : "2000000",
+ "green_drop_probability" : "5",
+ "yellow_drop_probability": "5",
+ "red_drop_probability" : "5"
+ }
+ },
+{%- endmacro %}
+
{%- include 'qos_config.j2' %}
diff --git a/device/arista/x86_64-arista_7800r3a_36d2_lc/Arista-7800R3A-36D2-C72/1/qos.json.j2 b/device/arista/x86_64-arista_7800r3a_36d2_lc/Arista-7800R3A-36D2-C72/1/qos.json.j2
index 3e548325ea..411942ab52 100644
--- a/device/arista/x86_64-arista_7800r3a_36d2_lc/Arista-7800R3A-36D2-C72/1/qos.json.j2
+++ b/device/arista/x86_64-arista_7800r3a_36d2_lc/Arista-7800R3A-36D2-C72/1/qos.json.j2
@@ -1 +1,21 @@
+{%- macro generate_wred_profiles() %}
+ "WRED_PROFILE": {
+ "AZURE_LOSSLESS" : {
+ "wred_green_enable" : "true",
+ "wred_yellow_enable" : "true",
+ "wred_red_enable" : "true",
+ "ecn" : "ecn_all",
+ "green_max_threshold" : "10000000",
+ "green_min_threshold" : "2000000",
+ "yellow_max_threshold" : "10000000",
+ "yellow_min_threshold" : "2000000",
+ "red_max_threshold" : "10000000",
+ "red_min_threshold" : "2000000",
+ "green_drop_probability" : "5",
+ "yellow_drop_probability": "5",
+ "red_drop_probability" : "5"
+ }
+ },
+{%- endmacro %}
+
{%- include 'qos_config.j2' %}
diff --git a/device/arista/x86_64-arista_7800r3a_36d2_lc/Arista-7800R3A-36D2-D36/0/qos.json.j2 b/device/arista/x86_64-arista_7800r3a_36d2_lc/Arista-7800R3A-36D2-D36/0/qos.json.j2
index 3e548325ea..411942ab52 100644
--- a/device/arista/x86_64-arista_7800r3a_36d2_lc/Arista-7800R3A-36D2-D36/0/qos.json.j2
+++ b/device/arista/x86_64-arista_7800r3a_36d2_lc/Arista-7800R3A-36D2-D36/0/qos.json.j2
@@ -1 +1,21 @@
+{%- macro generate_wred_profiles() %}
+ "WRED_PROFILE": {
+ "AZURE_LOSSLESS" : {
+ "wred_green_enable" : "true",
+ "wred_yellow_enable" : "true",
+ "wred_red_enable" : "true",
+ "ecn" : "ecn_all",
+ "green_max_threshold" : "10000000",
+ "green_min_threshold" : "2000000",
+ "yellow_max_threshold" : "10000000",
+ "yellow_min_threshold" : "2000000",
+ "red_max_threshold" : "10000000",
+ "red_min_threshold" : "2000000",
+ "green_drop_probability" : "5",
+ "yellow_drop_probability": "5",
+ "red_drop_probability" : "5"
+ }
+ },
+{%- endmacro %}
+
{%- include 'qos_config.j2' %}
diff --git a/device/arista/x86_64-arista_7800r3a_36d2_lc/Arista-7800R3A-36D2-D36/1/qos.json.j2 b/device/arista/x86_64-arista_7800r3a_36d2_lc/Arista-7800R3A-36D2-D36/1/qos.json.j2
index 3e548325ea..411942ab52 100644
--- a/device/arista/x86_64-arista_7800r3a_36d2_lc/Arista-7800R3A-36D2-D36/1/qos.json.j2
+++ b/device/arista/x86_64-arista_7800r3a_36d2_lc/Arista-7800R3A-36D2-D36/1/qos.json.j2
@@ -1 +1,21 @@
+{%- macro generate_wred_profiles() %}
+ "WRED_PROFILE": {
+ "AZURE_LOSSLESS" : {
+ "wred_green_enable" : "true",
+ "wred_yellow_enable" : "true",
+ "wred_red_enable" : "true",
+ "ecn" : "ecn_all",
+ "green_max_threshold" : "10000000",
+ "green_min_threshold" : "2000000",
+ "yellow_max_threshold" : "10000000",
+ "yellow_min_threshold" : "2000000",
+ "red_max_threshold" : "10000000",
+ "red_min_threshold" : "2000000",
+ "green_drop_probability" : "5",
+ "yellow_drop_probability": "5",
+ "red_drop_probability" : "5"
+ }
+ },
+{%- endmacro %}
+
{%- include 'qos_config.j2' %}
diff --git a/device/nokia/x86_64-nokia_ixr7250e_36x400g-r0/Nokia-IXR7250E-36x100G/0/qos.json.j2 b/device/nokia/x86_64-nokia_ixr7250e_36x400g-r0/Nokia-IXR7250E-36x100G/0/qos.json.j2
index 3e548325ea..411942ab52 100644
--- a/device/nokia/x86_64-nokia_ixr7250e_36x400g-r0/Nokia-IXR7250E-36x100G/0/qos.json.j2
+++ b/device/nokia/x86_64-nokia_ixr7250e_36x400g-r0/Nokia-IXR7250E-36x100G/0/qos.json.j2
@@ -1 +1,21 @@
+{%- macro generate_wred_profiles() %}
+ "WRED_PROFILE": {
+ "AZURE_LOSSLESS" : {
+ "wred_green_enable" : "true",
+ "wred_yellow_enable" : "true",
+ "wred_red_enable" : "true",
+ "ecn" : "ecn_all",
+ "green_max_threshold" : "10000000",
+ "green_min_threshold" : "2000000",
+ "yellow_max_threshold" : "10000000",
+ "yellow_min_threshold" : "2000000",
+ "red_max_threshold" : "10000000",
+ "red_min_threshold" : "2000000",
+ "green_drop_probability" : "5",
+ "yellow_drop_probability": "5",
+ "red_drop_probability" : "5"
+ }
+ },
+{%- endmacro %}
+
{%- include 'qos_config.j2' %}
diff --git a/device/nokia/x86_64-nokia_ixr7250e_36x400g-r0/Nokia-IXR7250E-36x100G/1/qos.json.j2 b/device/nokia/x86_64-nokia_ixr7250e_36x400g-r0/Nokia-IXR7250E-36x100G/1/qos.json.j2
index 3e548325ea..411942ab52 100644
--- a/device/nokia/x86_64-nokia_ixr7250e_36x400g-r0/Nokia-IXR7250E-36x100G/1/qos.json.j2
+++ b/device/nokia/x86_64-nokia_ixr7250e_36x400g-r0/Nokia-IXR7250E-36x100G/1/qos.json.j2
@@ -1 +1,21 @@
+{%- macro generate_wred_profiles() %}
+ "WRED_PROFILE": {
+ "AZURE_LOSSLESS" : {
+ "wred_green_enable" : "true",
+ "wred_yellow_enable" : "true",
+ "wred_red_enable" : "true",
+ "ecn" : "ecn_all",
+ "green_max_threshold" : "10000000",
+ "green_min_threshold" : "2000000",
+ "yellow_max_threshold" : "10000000",
+ "yellow_min_threshold" : "2000000",
+ "red_max_threshold" : "10000000",
+ "red_min_threshold" : "2000000",
+ "green_drop_probability" : "5",
+ "yellow_drop_probability": "5",
+ "red_drop_probability" : "5"
+ }
+ },
+{%- endmacro %}
+
{%- include 'qos_config.j2' %}
diff --git a/device/nokia/x86_64-nokia_ixr7250e_36x400g-r0/Nokia-IXR7250E-36x400G/0/qos.json.j2 b/device/nokia/x86_64-nokia_ixr7250e_36x400g-r0/Nokia-IXR7250E-36x400G/0/qos.json.j2
index 3e548325ea..411942ab52 100644
--- a/device/nokia/x86_64-nokia_ixr7250e_36x400g-r0/Nokia-IXR7250E-36x400G/0/qos.json.j2
+++ b/device/nokia/x86_64-nokia_ixr7250e_36x400g-r0/Nokia-IXR7250E-36x400G/0/qos.json.j2
@@ -1 +1,21 @@
+{%- macro generate_wred_profiles() %}
+ "WRED_PROFILE": {
+ "AZURE_LOSSLESS" : {
+ "wred_green_enable" : "true",
+ "wred_yellow_enable" : "true",
+ "wred_red_enable" : "true",
+ "ecn" : "ecn_all",
+ "green_max_threshold" : "10000000",
+ "green_min_threshold" : "2000000",
+ "yellow_max_threshold" : "10000000",
+ "yellow_min_threshold" : "2000000",
+ "red_max_threshold" : "10000000",
+ "red_min_threshold" : "2000000",
+ "green_drop_probability" : "5",
+ "yellow_drop_probability": "5",
+ "red_drop_probability" : "5"
+ }
+ },
+{%- endmacro %}
+
{%- include 'qos_config.j2' %}
diff --git a/device/nokia/x86_64-nokia_ixr7250e_36x400g-r0/Nokia-IXR7250E-36x400G/1/qos.json.j2 b/device/nokia/x86_64-nokia_ixr7250e_36x400g-r0/Nokia-IXR7250E-36x400G/1/qos.json.j2
index 3e548325ea..411942ab52 100644
--- a/device/nokia/x86_64-nokia_ixr7250e_36x400g-r0/Nokia-IXR7250E-36x400G/1/qos.json.j2
+++ b/device/nokia/x86_64-nokia_ixr7250e_36x400g-r0/Nokia-IXR7250E-36x400G/1/qos.json.j2
@@ -1 +1,21 @@
+{%- macro generate_wred_profiles() %}
+ "WRED_PROFILE": {
+ "AZURE_LOSSLESS" : {
+ "wred_green_enable" : "true",
+ "wred_yellow_enable" : "true",
+ "wred_red_enable" : "true",
+ "ecn" : "ecn_all",
+ "green_max_threshold" : "10000000",
+ "green_min_threshold" : "2000000",
+ "yellow_max_threshold" : "10000000",
+ "yellow_min_threshold" : "2000000",
+ "red_max_threshold" : "10000000",
+ "red_min_threshold" : "2000000",
+ "green_drop_probability" : "5",
+ "yellow_drop_probability": "5",
+ "red_drop_probability" : "5"
+ }
+ },
+{%- endmacro %}
+
{%- include 'qos_config.j2' %}
diff --git a/src/sonic-config-engine/tests/sample-arista-7800r3a-36dm2-c36-lc-t2-minigraph.xml b/src/sonic-config-engine/tests/sample-arista-7800r3a-36dm2-c36-lc-t2-minigraph.xml
index 8afcaf9d8d..2c9940cc4a 100644
--- a/src/sonic-config-engine/tests/sample-arista-7800r3a-36dm2-c36-lc-t2-minigraph.xml
+++ b/src/sonic-config-engine/tests/sample-arista-7800r3a-36dm2-c36-lc-t2-minigraph.xml
@@ -914,8 +914,6 @@
10
3
-
-
ASIC0
ASIC1
diff --git a/src/sonic-config-engine/tests/sample-arista-7800r3a-36dm2-d36-lc-t2-minigraph.xml b/src/sonic-config-engine/tests/sample-arista-7800r3a-36dm2-d36-lc-t2-minigraph.xml
index 2ba497bb99..f3aad825e5 100644
--- a/src/sonic-config-engine/tests/sample-arista-7800r3a-36dm2-d36-lc-t2-minigraph.xml
+++ b/src/sonic-config-engine/tests/sample-arista-7800r3a-36dm2-d36-lc-t2-minigraph.xml
@@ -914,8 +914,6 @@
10
3
-
-
ASIC0
str3-7800-lc2-1
diff --git a/src/sonic-config-engine/tests/sample-nokia-ixr7250e-36x100g-t2-minigraph.xml b/src/sonic-config-engine/tests/sample-nokia-ixr7250e-36x100g-t2-minigraph.xml
index 7bb8229839..d07612240a 100644
--- a/src/sonic-config-engine/tests/sample-nokia-ixr7250e-36x100g-t2-minigraph.xml
+++ b/src/sonic-config-engine/tests/sample-nokia-ixr7250e-36x100g-t2-minigraph.xml
@@ -914,8 +914,6 @@
10
3
-
-
ASIC0
ASIC1
diff --git a/src/sonic-config-engine/tests/sample-nokia-ixr7250e-36x400g-t2-minigraph.xml b/src/sonic-config-engine/tests/sample-nokia-ixr7250e-36x400g-t2-minigraph.xml
index ff923b5091..87069e53fd 100644
--- a/src/sonic-config-engine/tests/sample-nokia-ixr7250e-36x400g-t2-minigraph.xml
+++ b/src/sonic-config-engine/tests/sample-nokia-ixr7250e-36x400g-t2-minigraph.xml
@@ -154,8 +154,6 @@
10
3
-
-
ASIC0
ASIC1
diff --git a/src/sonic-config-engine/tests/sample_output/py2/qos-arista7800r3-48cq2-lc.json b/src/sonic-config-engine/tests/sample_output/py2/qos-arista7800r3-48cq2-lc.json
index bd8f5a22a9..7aecbdbd90 100644
--- a/src/sonic-config-engine/tests/sample_output/py2/qos-arista7800r3-48cq2-lc.json
+++ b/src/sonic-config-engine/tests/sample_output/py2/qos-arista7800r3-48cq2-lc.json
@@ -484,12 +484,12 @@
"wred_yellow_enable" : "true",
"wred_red_enable" : "true",
"ecn" : "ecn_all",
- "green_max_threshold" : "2097152",
- "green_min_threshold" : "1048576",
- "yellow_max_threshold" : "2097152",
- "yellow_min_threshold" : "1048576",
- "red_max_threshold" : "2097152",
- "red_min_threshold" : "1048576",
+ "green_max_threshold" : "10000000",
+ "green_min_threshold" : "2000000",
+ "yellow_max_threshold" : "10000000",
+ "yellow_min_threshold" : "2000000",
+ "red_max_threshold" : "10000000",
+ "red_min_threshold" : "2000000",
"green_drop_probability" : "5",
"yellow_drop_probability": "5",
"red_drop_probability" : "5"
diff --git a/src/sonic-config-engine/tests/sample_output/py2/qos-arista7800r3-48cqm2-lc.json b/src/sonic-config-engine/tests/sample_output/py2/qos-arista7800r3-48cqm2-lc.json
index bd8f5a22a9..7aecbdbd90 100644
--- a/src/sonic-config-engine/tests/sample_output/py2/qos-arista7800r3-48cqm2-lc.json
+++ b/src/sonic-config-engine/tests/sample_output/py2/qos-arista7800r3-48cqm2-lc.json
@@ -484,12 +484,12 @@
"wred_yellow_enable" : "true",
"wred_red_enable" : "true",
"ecn" : "ecn_all",
- "green_max_threshold" : "2097152",
- "green_min_threshold" : "1048576",
- "yellow_max_threshold" : "2097152",
- "yellow_min_threshold" : "1048576",
- "red_max_threshold" : "2097152",
- "red_min_threshold" : "1048576",
+ "green_max_threshold" : "10000000",
+ "green_min_threshold" : "2000000",
+ "yellow_max_threshold" : "10000000",
+ "yellow_min_threshold" : "2000000",
+ "red_max_threshold" : "10000000",
+ "red_min_threshold" : "2000000",
"green_drop_probability" : "5",
"yellow_drop_probability": "5",
"red_drop_probability" : "5"
diff --git a/src/sonic-config-engine/tests/sample_output/py2/qos-arista7800r3a-36dm2-c36-lc.json b/src/sonic-config-engine/tests/sample_output/py2/qos-arista7800r3a-36dm2-c36-lc.json
index f1dff3a0bd..cf6fbf64f8 100644
--- a/src/sonic-config-engine/tests/sample_output/py2/qos-arista7800r3a-36dm2-c36-lc.json
+++ b/src/sonic-config-engine/tests/sample_output/py2/qos-arista7800r3a-36dm2-c36-lc.json
@@ -268,12 +268,12 @@
"wred_yellow_enable" : "true",
"wred_red_enable" : "true",
"ecn" : "ecn_all",
- "green_max_threshold" : "2097152",
- "green_min_threshold" : "1048576",
- "yellow_max_threshold" : "2097152",
- "yellow_min_threshold" : "1048576",
- "red_max_threshold" : "2097152",
- "red_min_threshold" : "1048576",
+ "green_max_threshold" : "10000000",
+ "green_min_threshold" : "2000000",
+ "yellow_max_threshold" : "10000000",
+ "yellow_min_threshold" : "2000000",
+ "red_max_threshold" : "10000000",
+ "red_min_threshold" : "2000000",
"green_drop_probability" : "5",
"yellow_drop_probability": "5",
"red_drop_probability" : "5"
diff --git a/src/sonic-config-engine/tests/sample_output/py2/qos-arista7800r3a-36dm2-d36-lc.json b/src/sonic-config-engine/tests/sample_output/py2/qos-arista7800r3a-36dm2-d36-lc.json
index f1dff3a0bd..cf6fbf64f8 100644
--- a/src/sonic-config-engine/tests/sample_output/py2/qos-arista7800r3a-36dm2-d36-lc.json
+++ b/src/sonic-config-engine/tests/sample_output/py2/qos-arista7800r3a-36dm2-d36-lc.json
@@ -268,12 +268,12 @@
"wred_yellow_enable" : "true",
"wred_red_enable" : "true",
"ecn" : "ecn_all",
- "green_max_threshold" : "2097152",
- "green_min_threshold" : "1048576",
- "yellow_max_threshold" : "2097152",
- "yellow_min_threshold" : "1048576",
- "red_max_threshold" : "2097152",
- "red_min_threshold" : "1048576",
+ "green_max_threshold" : "10000000",
+ "green_min_threshold" : "2000000",
+ "yellow_max_threshold" : "10000000",
+ "yellow_min_threshold" : "2000000",
+ "red_max_threshold" : "10000000",
+ "red_min_threshold" : "2000000",
"green_drop_probability" : "5",
"yellow_drop_probability": "5",
"red_drop_probability" : "5"
diff --git a/src/sonic-config-engine/tests/sample_output/py2/qos-nokia-ixr7250e-36x100g.json b/src/sonic-config-engine/tests/sample_output/py2/qos-nokia-ixr7250e-36x100g.json
index f1dff3a0bd..cf6fbf64f8 100644
--- a/src/sonic-config-engine/tests/sample_output/py2/qos-nokia-ixr7250e-36x100g.json
+++ b/src/sonic-config-engine/tests/sample_output/py2/qos-nokia-ixr7250e-36x100g.json
@@ -268,12 +268,12 @@
"wred_yellow_enable" : "true",
"wred_red_enable" : "true",
"ecn" : "ecn_all",
- "green_max_threshold" : "2097152",
- "green_min_threshold" : "1048576",
- "yellow_max_threshold" : "2097152",
- "yellow_min_threshold" : "1048576",
- "red_max_threshold" : "2097152",
- "red_min_threshold" : "1048576",
+ "green_max_threshold" : "10000000",
+ "green_min_threshold" : "2000000",
+ "yellow_max_threshold" : "10000000",
+ "yellow_min_threshold" : "2000000",
+ "red_max_threshold" : "10000000",
+ "red_min_threshold" : "2000000",
"green_drop_probability" : "5",
"yellow_drop_probability": "5",
"red_drop_probability" : "5"
diff --git a/src/sonic-config-engine/tests/sample_output/py2/qos-nokia-ixr7250e-36x400g.json b/src/sonic-config-engine/tests/sample_output/py2/qos-nokia-ixr7250e-36x400g.json
index f1dff3a0bd..cf6fbf64f8 100644
--- a/src/sonic-config-engine/tests/sample_output/py2/qos-nokia-ixr7250e-36x400g.json
+++ b/src/sonic-config-engine/tests/sample_output/py2/qos-nokia-ixr7250e-36x400g.json
@@ -268,12 +268,12 @@
"wred_yellow_enable" : "true",
"wred_red_enable" : "true",
"ecn" : "ecn_all",
- "green_max_threshold" : "2097152",
- "green_min_threshold" : "1048576",
- "yellow_max_threshold" : "2097152",
- "yellow_min_threshold" : "1048576",
- "red_max_threshold" : "2097152",
- "red_min_threshold" : "1048576",
+ "green_max_threshold" : "10000000",
+ "green_min_threshold" : "2000000",
+ "yellow_max_threshold" : "10000000",
+ "yellow_min_threshold" : "2000000",
+ "red_max_threshold" : "10000000",
+ "red_min_threshold" : "2000000",
"green_drop_probability" : "5",
"yellow_drop_probability": "5",
"red_drop_probability" : "5"
diff --git a/src/sonic-config-engine/tests/sample_output/py3/qos-arista7800r3-48cq2-lc.json b/src/sonic-config-engine/tests/sample_output/py3/qos-arista7800r3-48cq2-lc.json
index bd8f5a22a9..7aecbdbd90 100644
--- a/src/sonic-config-engine/tests/sample_output/py3/qos-arista7800r3-48cq2-lc.json
+++ b/src/sonic-config-engine/tests/sample_output/py3/qos-arista7800r3-48cq2-lc.json
@@ -484,12 +484,12 @@
"wred_yellow_enable" : "true",
"wred_red_enable" : "true",
"ecn" : "ecn_all",
- "green_max_threshold" : "2097152",
- "green_min_threshold" : "1048576",
- "yellow_max_threshold" : "2097152",
- "yellow_min_threshold" : "1048576",
- "red_max_threshold" : "2097152",
- "red_min_threshold" : "1048576",
+ "green_max_threshold" : "10000000",
+ "green_min_threshold" : "2000000",
+ "yellow_max_threshold" : "10000000",
+ "yellow_min_threshold" : "2000000",
+ "red_max_threshold" : "10000000",
+ "red_min_threshold" : "2000000",
"green_drop_probability" : "5",
"yellow_drop_probability": "5",
"red_drop_probability" : "5"
diff --git a/src/sonic-config-engine/tests/sample_output/py3/qos-arista7800r3-48cqm2-lc.json b/src/sonic-config-engine/tests/sample_output/py3/qos-arista7800r3-48cqm2-lc.json
index bd8f5a22a9..7aecbdbd90 100644
--- a/src/sonic-config-engine/tests/sample_output/py3/qos-arista7800r3-48cqm2-lc.json
+++ b/src/sonic-config-engine/tests/sample_output/py3/qos-arista7800r3-48cqm2-lc.json
@@ -484,12 +484,12 @@
"wred_yellow_enable" : "true",
"wred_red_enable" : "true",
"ecn" : "ecn_all",
- "green_max_threshold" : "2097152",
- "green_min_threshold" : "1048576",
- "yellow_max_threshold" : "2097152",
- "yellow_min_threshold" : "1048576",
- "red_max_threshold" : "2097152",
- "red_min_threshold" : "1048576",
+ "green_max_threshold" : "10000000",
+ "green_min_threshold" : "2000000",
+ "yellow_max_threshold" : "10000000",
+ "yellow_min_threshold" : "2000000",
+ "red_max_threshold" : "10000000",
+ "red_min_threshold" : "2000000",
"green_drop_probability" : "5",
"yellow_drop_probability": "5",
"red_drop_probability" : "5"
diff --git a/src/sonic-config-engine/tests/sample_output/py3/qos-arista7800r3a-36dm2-c36-lc.json b/src/sonic-config-engine/tests/sample_output/py3/qos-arista7800r3a-36dm2-c36-lc.json
index f1dff3a0bd..cf6fbf64f8 100644
--- a/src/sonic-config-engine/tests/sample_output/py3/qos-arista7800r3a-36dm2-c36-lc.json
+++ b/src/sonic-config-engine/tests/sample_output/py3/qos-arista7800r3a-36dm2-c36-lc.json
@@ -268,12 +268,12 @@
"wred_yellow_enable" : "true",
"wred_red_enable" : "true",
"ecn" : "ecn_all",
- "green_max_threshold" : "2097152",
- "green_min_threshold" : "1048576",
- "yellow_max_threshold" : "2097152",
- "yellow_min_threshold" : "1048576",
- "red_max_threshold" : "2097152",
- "red_min_threshold" : "1048576",
+ "green_max_threshold" : "10000000",
+ "green_min_threshold" : "2000000",
+ "yellow_max_threshold" : "10000000",
+ "yellow_min_threshold" : "2000000",
+ "red_max_threshold" : "10000000",
+ "red_min_threshold" : "2000000",
"green_drop_probability" : "5",
"yellow_drop_probability": "5",
"red_drop_probability" : "5"
diff --git a/src/sonic-config-engine/tests/sample_output/py3/qos-arista7800r3a-36dm2-d36-lc.json b/src/sonic-config-engine/tests/sample_output/py3/qos-arista7800r3a-36dm2-d36-lc.json
index f1dff3a0bd..cf6fbf64f8 100644
--- a/src/sonic-config-engine/tests/sample_output/py3/qos-arista7800r3a-36dm2-d36-lc.json
+++ b/src/sonic-config-engine/tests/sample_output/py3/qos-arista7800r3a-36dm2-d36-lc.json
@@ -268,12 +268,12 @@
"wred_yellow_enable" : "true",
"wred_red_enable" : "true",
"ecn" : "ecn_all",
- "green_max_threshold" : "2097152",
- "green_min_threshold" : "1048576",
- "yellow_max_threshold" : "2097152",
- "yellow_min_threshold" : "1048576",
- "red_max_threshold" : "2097152",
- "red_min_threshold" : "1048576",
+ "green_max_threshold" : "10000000",
+ "green_min_threshold" : "2000000",
+ "yellow_max_threshold" : "10000000",
+ "yellow_min_threshold" : "2000000",
+ "red_max_threshold" : "10000000",
+ "red_min_threshold" : "2000000",
"green_drop_probability" : "5",
"yellow_drop_probability": "5",
"red_drop_probability" : "5"
diff --git a/src/sonic-config-engine/tests/sample_output/py3/qos-nokia-ixr7250e-36x100g.json b/src/sonic-config-engine/tests/sample_output/py3/qos-nokia-ixr7250e-36x100g.json
index f1dff3a0bd..cf6fbf64f8 100644
--- a/src/sonic-config-engine/tests/sample_output/py3/qos-nokia-ixr7250e-36x100g.json
+++ b/src/sonic-config-engine/tests/sample_output/py3/qos-nokia-ixr7250e-36x100g.json
@@ -268,12 +268,12 @@
"wred_yellow_enable" : "true",
"wred_red_enable" : "true",
"ecn" : "ecn_all",
- "green_max_threshold" : "2097152",
- "green_min_threshold" : "1048576",
- "yellow_max_threshold" : "2097152",
- "yellow_min_threshold" : "1048576",
- "red_max_threshold" : "2097152",
- "red_min_threshold" : "1048576",
+ "green_max_threshold" : "10000000",
+ "green_min_threshold" : "2000000",
+ "yellow_max_threshold" : "10000000",
+ "yellow_min_threshold" : "2000000",
+ "red_max_threshold" : "10000000",
+ "red_min_threshold" : "2000000",
"green_drop_probability" : "5",
"yellow_drop_probability": "5",
"red_drop_probability" : "5"
diff --git a/src/sonic-config-engine/tests/sample_output/py3/qos-nokia-ixr7250e-36x400g.json b/src/sonic-config-engine/tests/sample_output/py3/qos-nokia-ixr7250e-36x400g.json
index f1dff3a0bd..cf6fbf64f8 100644
--- a/src/sonic-config-engine/tests/sample_output/py3/qos-nokia-ixr7250e-36x400g.json
+++ b/src/sonic-config-engine/tests/sample_output/py3/qos-nokia-ixr7250e-36x400g.json
@@ -268,12 +268,12 @@
"wred_yellow_enable" : "true",
"wred_red_enable" : "true",
"ecn" : "ecn_all",
- "green_max_threshold" : "2097152",
- "green_min_threshold" : "1048576",
- "yellow_max_threshold" : "2097152",
- "yellow_min_threshold" : "1048576",
- "red_max_threshold" : "2097152",
- "red_min_threshold" : "1048576",
+ "green_max_threshold" : "10000000",
+ "green_min_threshold" : "2000000",
+ "yellow_max_threshold" : "10000000",
+ "yellow_min_threshold" : "2000000",
+ "red_max_threshold" : "10000000",
+ "red_min_threshold" : "2000000",
"green_drop_probability" : "5",
"yellow_drop_probability": "5",
"red_drop_probability" : "5"
diff --git a/src/sonic-config-engine/tests/test_j2files.py b/src/sonic-config-engine/tests/test_j2files.py
index 1567db6cc9..74003f7fe0 100644
--- a/src/sonic-config-engine/tests/test_j2files.py
+++ b/src/sonic-config-engine/tests/test_j2files.py
@@ -31,6 +31,8 @@ class TestJ2Files(TestCase):
self.dell9332_t1_minigraph = os.path.join(self.test_dir, 'sample-dell-9332-t1-minigraph.xml')
self.radv_test_minigraph = os.path.join(self.test_dir, 'radv-test-sample-graph.xml')
self.no_ip_helper_minigraph = os.path.join(self.test_dir, 't0-sample-no-ip-helper-graph.xml')
+ self.nokia_ixr7250e_36x100g_t2_minigraph = os.path.join(self.test_dir, 'sample-nokia-ixr7250e-36x100g-t2-minigraph.xml')
+ self.nokia_ixr7250e_36x400g_t2_minigraph = os.path.join(self.test_dir, 'sample-nokia-ixr7250e-36x400g-t2-minigraph.xml')
self.output_file = os.path.join(self.test_dir, 'output')
self.nokia_ixr7250e_36x100g_t2_minigraph = os.path.join(self.test_dir, 'sample-nokia-ixr7250e-36x100g-t2-minigraph.xml')
self.nokia_ixr7250e_36x400g_t2_minigraph = os.path.join(self.test_dir, 'sample-nokia-ixr7250e-36x400g-t2-minigraph.xml')