You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/qos/reclaim-reserved-buffer.md
+12Lines changed: 12 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -166,6 +166,7 @@ The following snippet of code is to generate `PORT_INACTIVE` which contains all
166
166
They need to be moved from the middle of `buffer_template.j2` to the place just before the vendor specific template is imported, so that the vendor specific template has access to `PORT_INACTIVE`.
167
167
168
168
```json
169
+
{% raw %} # ignore this line please
169
170
{%- set PORT_ALL = [] %}
170
171
171
172
{%- if PORT is not defined %}
@@ -192,16 +193,19 @@ They need to be moved from the middle of `buffer_template.j2` to the place just
192
193
193
194
{# Import default values from device HWSKU folder #}
194
195
{%- import 'buffers_defaults_%s.j2' % filename_postfix as defs with context %}
196
+
{% endraw %} # ignore this line please
195
197
```
196
198
197
199
The vairable `port_names_inactive` also need to be generated by the following snipped of code.
198
200
199
201
```json
202
+
{% raw %} # ignore this line please
200
203
{%- set port_names_list_inactive = [] %}
201
204
{%- for port in PORT_INACTIVE %}
202
205
{%- if port_names_list_inactive.append(port) %}{%- endif %}
203
206
{%- endfor %}
204
207
{%- set port_names_inactive = port_names_list_inactive | join(',') %}
208
+
{% endraw %} # ignore this line please
205
209
```
206
210
207
211
##### 7.1.1.2 Macro to generate buffer pool and profiles #####
@@ -211,6 +215,7 @@ Zero buffer profiles should be defined for ingress/egress and lossless/lossy tra
211
215
This macro is defined in vendor specific buffer template files.
212
216
213
217
```json
218
+
{% raw %} # ignore this line please
214
219
{%- macro generate_buffer_pool_and_profiles() %}
215
220
"BUFFER_POOL": {
216
221
{%- if dynamic_mode is not defined and PORT_INACTIVE is defined and PORT_INACTIVE|length > 0 %}
@@ -302,6 +307,7 @@ This macro is defined in vendor specific buffer template files.
302
307
}
303
308
},
304
309
{%- endmacro %}
310
+
{% endraw %} # ignore this line please
305
311
```
306
312
307
313
##### 7.1.1.3 Macro to apply zero buffer profiles to inactive ports #####
@@ -321,6 +327,7 @@ These macros are defined in vendor specific buffer template files.
0 commit comments