File tree 2 files changed +18
-26
lines changed
2 files changed +18
-26
lines changed Original file line number Diff line number Diff line change 63
63
},
64
64
{% - endmacro %}
65
65
66
- {% - macro generate_pg_profils (port_names ) %}
67
- "BUFFER_PG": {
68
- "{{ port_names }}|3-4": {
69
- "profile" : "ingress_lossless_profile"
70
- }
71
- },
72
- {% - endmacro %}
73
-
74
66
{% - macro generate_queue_buffers (port_names ) %}
75
67
"BUFFER_QUEUE": {
76
- "{{ port_names }}|3-4": {
77
- "profile" : "egress_lossless_profile"
78
- },
79
- "{{ port_names }}|0-1": {
68
+ {% for port in port_names .split (',' ) %}
69
+ "{{ port }}|0-2": {
80
70
"profile" : "q_lossy_profile"
81
- }
71
+ },
72
+ {% endfor %}
73
+ {% for port in port_names .split (',' ) %}
74
+ "{{ port }}|3-4": {
75
+ "profile" : "egress_lossless_profile"
76
+ }{% if not loop .last %} ,{% endif %}
77
+ {% endfor %}
82
78
}
83
79
{% - endmacro %}
Original file line number Diff line number Diff line change 63
63
},
64
64
{% - endmacro %}
65
65
66
- {% - macro generate_pg_profils (port_names ) %}
67
- "BUFFER_PG": {
68
- "{{ port_names }}|3-4": {
69
- "profile" : "ingress_lossless_profile"
70
- }
71
- },
72
- {% - endmacro %}
73
-
74
66
{% - macro generate_queue_buffers (port_names ) %}
75
67
"BUFFER_QUEUE": {
76
- "{{ port_names }}|3-4": {
77
- "profile" : "egress_lossless_profile"
78
- },
79
- "{{ port_names }}|0-1": {
68
+ {% for port in port_names .split (',' ) %}
69
+ "{{ port }}|0-2": {
80
70
"profile" : "q_lossy_profile"
81
- }
71
+ },
72
+ {% endfor %}
73
+ {% for port in port_names .split (',' ) %}
74
+ "{{ port }}|3-4": {
75
+ "profile" : "egress_lossless_profile"
76
+ }{% if not loop .last %} ,{% endif %}
77
+ {% endfor %}
82
78
}
83
79
{% - endmacro %}
You can’t perform that action at this time.
0 commit comments