|
3 | 3 | "AZURE": {
|
4 | 4 | "0" : "0",
|
5 | 5 | "1" : "1",
|
6 |
| - "2" : "2", |
7 |
| - "3" : "3", |
8 |
| - "4" : "4", |
9 |
| - "5" : "4", |
10 |
| - "6" : "4", |
| 6 | + "2" : "1", |
| 7 | + "3" : "2", |
| 8 | + "4" : "2", |
| 9 | + "5" : "3", |
| 10 | + "6" : "3", |
11 | 11 | "7" : "0",
|
12 | 12 | "8" : "0",
|
13 | 13 | "9" : "0",
|
14 |
| - "10": "5", |
15 |
| - "11": "0", |
16 |
| - "12": "0", |
17 |
| - "13": "0", |
18 |
| - "14": "0", |
19 |
| - "15": "0", |
20 |
| - "16": "0", |
21 |
| - "17": "0", |
22 |
| - "18": "0", |
23 |
| - "19": "0", |
24 |
| - "20": "0", |
25 |
| - "21": "0", |
26 |
| - "22": "0", |
27 |
| - "23": "0", |
28 |
| - "24": "0", |
29 |
| - "25": "0", |
30 |
| - "26": "0", |
31 |
| - "27": "0", |
32 |
| - "28": "0", |
33 |
| - "29": "0", |
34 |
| - "30": "0", |
35 |
| - "31": "0", |
36 |
| - "32": "0", |
37 |
| - "33": "0", |
38 |
| - "34": "0", |
39 |
| - "35": "0", |
40 |
| - "36": "0", |
41 |
| - "37": "0", |
42 |
| - "38": "0", |
43 |
| - "39": "0", |
44 |
| - "40": "0", |
| 14 | + "10": "0", |
| 15 | + "11": "4", |
| 16 | + "12": "4", |
| 17 | + "13": "4", |
| 18 | + "14": "4", |
| 19 | + "15": "4", |
| 20 | + "16": "4", |
| 21 | + "17": "4", |
| 22 | + "18": "4", |
| 23 | + "19": "4", |
| 24 | + "20": "4", |
| 25 | + "21": "4", |
| 26 | + "22": "4", |
| 27 | + "23": "4", |
| 28 | + "24": "4", |
| 29 | + "25": "4", |
| 30 | + "26": "4", |
| 31 | + "27": "4", |
| 32 | + "28": "4", |
| 33 | + "29": "4", |
| 34 | + "30": "4", |
| 35 | + "31": "5", |
| 36 | + "32": "5", |
| 37 | + "33": "5", |
| 38 | + "34": "5", |
| 39 | + "35": "5", |
| 40 | + "36": "5", |
| 41 | + "37": "5", |
| 42 | + "38": "5", |
| 43 | + "39": "5", |
| 44 | + "40": "5", |
45 | 45 | "41": "0",
|
46 | 46 | "42": "0",
|
47 | 47 | "43": "0",
|
|
88 | 88 |
|
89 | 89 | {%- macro generate_scheduler_per_sku() -%}
|
90 | 90 | "SCHEDULER": {
|
91 |
| - "scheduler.0": { |
| 91 | + "scheduler.4": { |
92 | 92 | "type" : "DWRR",
|
93 |
| - "weight": "1" |
| 93 | + "weight": "4" |
94 | 94 | },
|
95 |
| - "scheduler.1": { |
| 95 | + "scheduler.8": { |
96 | 96 | "type" : "DWRR",
|
97 |
| - "weight": "10" |
| 97 | + "weight": "8" |
98 | 98 | },
|
99 |
| - "scheduler.2": { |
| 99 | + "scheduler.18": { |
100 | 100 | "type" : "DWRR",
|
101 |
| - "weight": "20" |
| 101 | + "weight": "18" |
102 | 102 | },
|
103 |
| - "scheduler.3": { |
| 103 | + "scheduler.22": { |
104 | 104 | "type" : "DWRR",
|
105 |
| - "weight": "30" |
| 105 | + "weight": "22" |
106 | 106 | }
|
107 | 107 | },
|
108 | 108 | {%- endmacro -%}
|
109 | 109 |
|
| 110 | +{%- macro generate_wred_profiles() %} |
| 111 | + "WRED_PROFILE": { |
| 112 | + "AZURE_LOSSY_Q1" : { |
| 113 | + "wred_green_enable" : "true", |
| 114 | + "wred_yellow_enable" : "true", |
| 115 | + "wred_red_enable" : "true", |
| 116 | + "ecn" : "ecn_all", |
| 117 | + "green_max_threshold" : "282624", |
| 118 | + "green_min_threshold" : "166912", |
| 119 | + "yellow_max_threshold" : "282624", |
| 120 | + "yellow_min_threshold" : "166912", |
| 121 | + "red_max_threshold" : "282624", |
| 122 | + "red_min_threshold" : "166912", |
| 123 | + "green_drop_probability" : "5", |
| 124 | + "yellow_drop_probability": "5", |
| 125 | + "red_drop_probability" : "5" |
| 126 | + }, |
| 127 | + "AZURE_LOSSY_Q2" : { |
| 128 | + "wred_green_enable" : "true", |
| 129 | + "wred_yellow_enable" : "true", |
| 130 | + "wred_red_enable" : "true", |
| 131 | + "ecn" : "ecn_all", |
| 132 | + "green_max_threshold" : "282624", |
| 133 | + "green_min_threshold" : "166912", |
| 134 | + "yellow_max_threshold" : "282624", |
| 135 | + "yellow_min_threshold" : "166912", |
| 136 | + "red_max_threshold" : "282624", |
| 137 | + "red_min_threshold" : "166912", |
| 138 | + "green_drop_probability" : "5", |
| 139 | + "yellow_drop_probability": "5", |
| 140 | + "red_drop_probability" : "5" |
| 141 | + }, |
| 142 | + "AZURE_LOSSY_Q3" : { |
| 143 | + "wred_green_enable" : "true", |
| 144 | + "wred_yellow_enable" : "true", |
| 145 | + "wred_red_enable" : "true", |
| 146 | + "ecn" : "ecn_all", |
| 147 | + "green_max_threshold" : "282624", |
| 148 | + "green_min_threshold" : "166912", |
| 149 | + "yellow_max_threshold" : "282624", |
| 150 | + "yellow_min_threshold" : "166912", |
| 151 | + "red_max_threshold" : "282624", |
| 152 | + "red_min_threshold" : "166912", |
| 153 | + "green_drop_probability" : "5", |
| 154 | + "yellow_drop_probability": "5", |
| 155 | + "red_drop_probability" : "5" |
| 156 | + } |
| 157 | + }, |
| 158 | +{%- endmacro %} |
110 | 159 | {%- macro generate_single_queue_per_sku(port) -%}
|
111 | 160 | "{{ port }}|0": {
|
112 |
| - "scheduler": "scheduler.0" |
| 161 | + "scheduler": "scheduler.4" |
113 | 162 | },
|
114 | 163 | "{{ port }}|1": {
|
115 |
| - "scheduler": "scheduler.1" |
| 164 | + "scheduler": "scheduler.8", |
| 165 | + "wred_profile": "AZURE_LOSSY_Q1" |
116 | 166 | },
|
117 | 167 | "{{ port }}|2": {
|
118 |
| - "scheduler": "scheduler.2" |
| 168 | + "scheduler": "scheduler.18", |
| 169 | + "wred_profile": "AZURE_LOSSY_Q2" |
119 | 170 | },
|
120 | 171 | "{{ port }}|3": {
|
121 |
| - "scheduler": "scheduler.3" |
| 172 | + "scheduler": "scheduler.22", |
| 173 | + "wred_profile": "AZURE_LOSSY_Q3" |
122 | 174 | },
|
123 | 175 | "{{ port }}|4": {
|
124 |
| - "scheduler": "scheduler.1" |
| 176 | + "scheduler": "scheduler.22" |
125 | 177 | },
|
126 | 178 | "{{ port }}|5": {
|
127 |
| - "scheduler": "scheduler.1" |
| 179 | + "scheduler": "scheduler.22" |
128 | 180 | },
|
129 | 181 | "{{ port }}|6": {
|
130 |
| - "scheduler": "scheduler.1" |
| 182 | + "scheduler": "scheduler.4" |
131 | 183 | },
|
132 | 184 | "{{ port }}|7": {
|
133 |
| - "scheduler": "scheduler.1" |
| 185 | + "scheduler": "scheduler.22" |
134 | 186 | },
|
135 | 187 | "{{ port }}|8": {
|
136 |
| - "scheduler": "scheduler.1" |
| 188 | + "scheduler": "scheduler.22" |
137 | 189 | },
|
138 | 190 | "{{ port }}|9": {
|
139 |
| - "scheduler": "scheduler.1" |
| 191 | + "scheduler": "scheduler.22" |
140 | 192 | }
|
141 | 193 | {%- endmacro -%}
|
142 | 194 |
|
| 195 | + |
143 | 196 | {%- include 'qos_config.j2' %}
|
0 commit comments