File tree 4 files changed +84
-32
lines changed
x86_64-mlnx_msn2700-r0/ACS-MSN2700
x86_64-mlnx_msn3700-r0/ACS-MSN3700
4 files changed +84
-32
lines changed Original file line number Diff line number Diff line change 65
65
66
66
{% - macro generate_profile_lists (port_names ) %}
67
67
"BUFFER_PORT_INGRESS_PROFILE_LIST": {
68
- "{{ port_names }}": {
68
+ {% for port in port_names .split (',' ) %}
69
+ "{{ port }}": {
69
70
"profile_list" : "[BUFFER_PROFILE|ingress_lossless_profile],[BUFFER_PROFILE|ingress_lossy_profile]"
70
- }
71
+ }{% if not loop .last %} ,{% endif %}
72
+
73
+ {% endfor %}
71
74
},
72
75
"BUFFER_PORT_EGRESS_PROFILE_LIST": {
73
- "{{ port_names }}": {
76
+ {% for port in port_names .split (',' ) %}
77
+ "{{ port }}": {
74
78
"profile_list" : "[BUFFER_PROFILE|egress_lossless_profile],[BUFFER_PROFILE|egress_lossy_profile]"
75
- }
79
+ }{% if not loop .last %} ,{% endif %}
80
+
81
+ {% endfor %}
76
82
}
77
83
{% - endmacro %}
78
84
79
85
{% - macro generate_queue_buffers (port_names ) %}
80
86
"BUFFER_QUEUE": {
81
- "{{ port_names }}|3-4": {
87
+ {% for port in port_names .split (',' ) %}
88
+ "{{ port }}|3-4": {
82
89
"profile" : "[BUFFER_PROFILE|egress_lossless_profile]"
83
90
},
84
- "{{ port_names }}|0-1": {
91
+ {% endfor %}
92
+ {% for port in port_names .split (',' ) %}
93
+ "{{ port }}|0-2": {
85
94
"profile" : "[BUFFER_PROFILE|q_lossy_profile]"
86
95
},
87
- "{{ port_names }}|5": {
96
+ {% endfor %}
97
+ {% for port in port_names .split (',' ) %}
98
+ "{{ port }}|5-6": {
88
99
"profile" : "[BUFFER_PROFILE|q_lossy_profile]"
89
- }
100
+ }{% if not loop .last %} ,{% endif %}
101
+
102
+ {% endfor %}
90
103
}
91
104
{% - endmacro %}
92
105
Original file line number Diff line number Diff line change 65
65
66
66
{% - macro generate_profile_lists (port_names ) %}
67
67
"BUFFER_PORT_INGRESS_PROFILE_LIST": {
68
- "{{ port_names }}": {
68
+ {% for port in port_names .split (',' ) %}
69
+ "{{ port }}": {
69
70
"profile_list" : "[BUFFER_PROFILE|ingress_lossless_profile],[BUFFER_PROFILE|ingress_lossy_profile]"
70
- }
71
+ }{% if not loop .last %} ,{% endif %}
72
+
73
+ {% endfor %}
71
74
},
72
75
"BUFFER_PORT_EGRESS_PROFILE_LIST": {
73
- "{{ port_names }}": {
76
+ {% for port in port_names .split (',' ) %}
77
+ "{{ port }}": {
74
78
"profile_list" : "[BUFFER_PROFILE|egress_lossless_profile],[BUFFER_PROFILE|egress_lossy_profile]"
75
- }
79
+ }{% if not loop .last %} ,{% endif %}
80
+
81
+ {% endfor %}
76
82
}
77
83
{% - endmacro %}
78
84
79
85
{% - macro generate_queue_buffers (port_names ) %}
80
86
"BUFFER_QUEUE": {
81
- "{{ port_names }}|3-4": {
87
+ {% for port in port_names .split (',' ) %}
88
+ "{{ port }}|3-4": {
82
89
"profile" : "[BUFFER_PROFILE|egress_lossless_profile]"
83
90
},
84
- "{{ port_names }}|0-1": {
91
+ {% endfor %}
92
+ {% for port in port_names .split (',' ) %}
93
+ "{{ port }}|0-2": {
85
94
"profile" : "[BUFFER_PROFILE|q_lossy_profile]"
86
95
},
87
- "{{ port_names }}|5": {
96
+ {% endfor %}
97
+ {% for port in port_names .split (',' ) %}
98
+ "{{ port }}|5-6": {
88
99
"profile" : "[BUFFER_PROFILE|q_lossy_profile]"
89
- }
100
+ }{% if not loop .last %} ,{% endif %}
101
+
102
+ {% endfor %}
90
103
}
91
104
{% - endmacro %}
92
105
Original file line number Diff line number Diff line change 65
65
66
66
{% - macro generate_profile_lists (port_names ) %}
67
67
"BUFFER_PORT_INGRESS_PROFILE_LIST": {
68
- "{{ port_names }}": {
68
+ {% for port in port_names .split (',' ) %}
69
+ "{{ port }}": {
69
70
"profile_list" : "[BUFFER_PROFILE|ingress_lossless_profile],[BUFFER_PROFILE|ingress_lossy_profile]"
70
- }
71
+ }{% if not loop .last %} ,{% endif %}
72
+
73
+ {% endfor %}
71
74
},
72
75
"BUFFER_PORT_EGRESS_PROFILE_LIST": {
73
- "{{ port_names }}": {
76
+ {% for port in port_names .split (',' ) %}
77
+ "{{ port }}": {
74
78
"profile_list" : "[BUFFER_PROFILE|egress_lossless_profile],[BUFFER_PROFILE|egress_lossy_profile]"
75
- }
79
+ }{% if not loop .last %} ,{% endif %}
80
+
81
+ {% endfor %}
76
82
}
77
83
{% - endmacro %}
78
84
79
85
{% - macro generate_queue_buffers (port_names ) %}
80
86
"BUFFER_QUEUE": {
81
- "{{ port_names }}|3-4": {
87
+ {% for port in port_names .split (',' ) %}
88
+ "{{ port }}|3-4": {
82
89
"profile" : "[BUFFER_PROFILE|egress_lossless_profile]"
83
90
},
84
- "{{ port_names }}|0-1": {
91
+ {% endfor %}
92
+ {% for port in port_names .split (',' ) %}
93
+ "{{ port }}|0-2": {
85
94
"profile" : "[BUFFER_PROFILE|q_lossy_profile]"
86
95
},
87
- "{{ port_names }}|5": {
96
+ {% endfor %}
97
+ {% for port in port_names .split (',' ) %}
98
+ "{{ port }}|5-6": {
88
99
"profile" : "[BUFFER_PROFILE|q_lossy_profile]"
89
- }
100
+ }{% if not loop .last %} ,{% endif %}
101
+
102
+ {% endfor %}
90
103
}
91
104
{% - endmacro %}
Original file line number Diff line number Diff line change 65
65
66
66
{% - macro generate_profile_lists (port_names ) %}
67
67
"BUFFER_PORT_INGRESS_PROFILE_LIST": {
68
- "{{ port_names }}": {
68
+ {% for port in port_names .split (',' ) %}
69
+ "{{ port }}": {
69
70
"profile_list" : "[BUFFER_PROFILE|ingress_lossless_profile],[BUFFER_PROFILE|ingress_lossy_profile]"
70
- }
71
+ }{% if not loop .last %} ,{% endif %}
72
+
73
+ {% endfor %}
71
74
},
72
75
"BUFFER_PORT_EGRESS_PROFILE_LIST": {
73
- "{{ port_names }}": {
76
+ {% for port in port_names .split (',' ) %}
77
+ "{{ port }}": {
74
78
"profile_list" : "[BUFFER_PROFILE|egress_lossless_profile],[BUFFER_PROFILE|egress_lossy_profile]"
75
- }
79
+ }{% if not loop .last %} ,{% endif %}
80
+
81
+ {% endfor %}
76
82
}
77
83
{% - endmacro %}
78
84
79
85
{% - macro generate_queue_buffers (port_names ) %}
80
86
"BUFFER_QUEUE": {
81
- "{{ port_names }}|3-4": {
87
+ {% for port in port_names .split (',' ) %}
88
+ "{{ port }}|3-4": {
82
89
"profile" : "[BUFFER_PROFILE|egress_lossless_profile]"
83
90
},
84
- "{{ port_names }}|0-1": {
91
+ {% endfor %}
92
+ {% for port in port_names .split (',' ) %}
93
+ "{{ port }}|0-2": {
85
94
"profile" : "[BUFFER_PROFILE|q_lossy_profile]"
86
95
},
87
- "{{ port_names }}|5": {
96
+ {% endfor %}
97
+ {% for port in port_names .split (',' ) %}
98
+ "{{ port }}|5-6": {
88
99
"profile" : "[BUFFER_PROFILE|q_lossy_profile]"
89
- }
100
+ }{% if not loop .last %} ,{% endif %}
101
+
102
+ {% endfor %}
90
103
}
91
104
{% - endmacro %}
You can’t perform that action at this time.
0 commit comments