File tree 4 files changed +843
-13
lines changed
src/sonic-config-engine/tests/sample_output
4 files changed +843
-13
lines changed Original file line number Diff line number Diff line change @@ -131,25 +131,35 @@ def
131
131
{{ defs.generate_pg_profils(port_names_active) }}
132
132
{% else %}
133
133
"BUFFER_PG": {
134
- "{{ port_names_active }}|0": {
134
+ {% for port in PORT_ACTIVE %}
135
+ "{{ port }}|0": {
135
136
"profile" : "[BUFFER_PROFILE|ingress_lossy_profile]"
136
- }
137
+ }{% if not loop .last %} ,{% endif %}
138
+
139
+ {% endfor %}
137
140
},
138
141
{% endif %}
139
142
140
143
{% if defs .generate_queue_buffers is defined %}
141
144
{{ defs.generate_queue_buffers(port_names_active) }}
142
145
{% else %}
143
146
"BUFFER_QUEUE": {
144
- "{{ port_names_active }}|3-4": {
147
+ {% for port in PORT_ACTIVE %}
148
+ "{{ port }}|3-4": {
145
149
"profile" : "[BUFFER_PROFILE|egress_lossless_profile]"
146
150
},
147
- "{{ port_names_active }}|0-2": {
151
+ {% endfor %}
152
+ {% for port in PORT_ACTIVE %}
153
+ "{{ port }}|0-2": {
148
154
"profile" : "[BUFFER_PROFILE|egress_lossy_profile]"
149
155
},
150
- "{{ port_names_active }}|5-6": {
156
+ {% endfor %}
157
+ {% for port in PORT_ACTIVE %}
158
+ "{{ port }}|5-6": {
151
159
"profile" : "[BUFFER_PROFILE|egress_lossy_profile]"
152
- }
160
+ }{% if not loop .last %} ,{% endif %}
161
+
162
+ {% endfor %}
153
163
}
154
164
{% endif %}
155
165
}
Original file line number Diff line number Diff line change 175
175
},
176
176
{% endif %}
177
177
"PORT_QOS_MAP": {
178
- "{{ port_names_active }}": {
178
+ {% for port in PORT_ACTIVE %}
179
+ "{{ port }}": {
179
180
{% if 'type' in DEVICE_METADATA ['localhost' ] and DEVICE_METADATA ['localhost' ]['type' ] in backend_device_types %}
180
181
"dot1p_to_tc_map" : "[DOT1P_TO_TC_MAP|AZURE]",
181
182
{% else %}
188
189
"pfc_to_pg_map" : "[PFC_PRIORITY_TO_PRIORITY_GROUP_MAP|AZURE]",
189
190
{% endif %}
190
191
"pfc_enable" : "3,4"
191
- }
192
+ }{% if not loop .last %} ,{% endif %}
193
+
194
+ {% endfor %}
192
195
},
193
196
"WRED_PROFILE": {
194
197
"AZURE_LOSSLESS" : {
You can’t perform that action at this time.
0 commit comments