Skip to content

Commit dd18514

Browse files
wendanirenukamanavalan
authored andcommitted
Configure buffer profile to all ports (#3561)
Signed-off-by: Wenda Ni <[email protected]>
1 parent afbb916 commit dd18514

File tree

2 files changed

+769
-7
lines changed

2 files changed

+769
-7
lines changed

files/build_templates/buffers_config.j2

+10-4
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,8 @@ def
131131
{{ defs.generate_pg_profils(port_names_active) }}
132132
{% else %}
133133
"BUFFER_PG": {
134-
"{{ port_names_active }}|0": {
134+
{% for port in PORT_ALL %}
135+
"{{ port }}|0": {
135136
"profile" : "[BUFFER_PROFILE|ingress_lossy_profile]"
136137
}
137138
},
@@ -141,13 +142,18 @@ def
141142
{{ defs.generate_queue_buffers(port_names_active) }}
142143
{% else %}
143144
"BUFFER_QUEUE": {
144-
"{{ port_names_active }}|3-4": {
145+
{% for port in PORT_ALL %}
146+
"{{ port }}|3-4": {
145147
"profile" : "[BUFFER_PROFILE|egress_lossless_profile]"
146148
},
147-
"{{ port_names_active }}|0-2": {
149+
{% endfor %}
150+
{% for port in PORT_ALL %}
151+
"{{ port }}|0-2": {
148152
"profile" : "[BUFFER_PROFILE|egress_lossy_profile]"
149153
},
150-
"{{ port_names_active }}|5-6": {
154+
{% endfor %}
155+
{% for port in PORT_ALL %}
156+
"{{ port }}|5-6": {
151157
"profile" : "[BUFFER_PROFILE|egress_lossy_profile]"
152158
}
153159
}

0 commit comments

Comments
 (0)