|
1 |
| -{%- set default_cable = '5m' %} |
2 |
| - |
3 |
| -{%- macro generate_port_lists(PORT_ALL) %} |
4 |
| - {# Generate list of ports #} |
5 |
| - {%- for port_idx in range(0,192,4) %} |
6 |
| - {%- if PORT_ALL.append("Ethernet%d" % (port_idx)) %}{%- endif %} |
7 |
| - {%- endfor %} |
8 |
| -{%- endmacro %} |
9 |
| - |
10 |
| -{%- macro generate_buffer_pool_and_profiles() %} |
11 |
| - "BUFFER_POOL": { |
12 |
| - "ingress_lossless_pool": { |
13 |
| - "size": "3220805000", |
14 |
| - "type": "both", |
15 |
| - "mode": "dynamic", |
16 |
| - "xoff": "2102272" |
17 |
| - } |
18 |
| - }, |
19 |
| - "BUFFER_PROFILE": { |
20 |
| - "ingress_lossless_profile": { |
21 |
| - "pool":"ingress_lossless_pool", |
22 |
| - "size":"1280", |
23 |
| - "dynamic_th":"-2", |
24 |
| - "xon_offset":"2560", |
25 |
| - "xon":"0", |
26 |
| - "xoff":"66048" |
27 |
| - }, |
28 |
| - "ingress_lossy_profile": { |
29 |
| - "pool":"ingress_lossless_pool", |
30 |
| - "size":"0", |
31 |
| - "xon_offset":"0", |
32 |
| - "static_th":"30535680" |
33 |
| - }, |
34 |
| - "egress_lossless_profile": { |
35 |
| - "pool":"ingress_lossless_pool", |
36 |
| - "size":"0", |
37 |
| - "static_th":"33030144" |
38 |
| - }, |
39 |
| - "egress_lossy_profile": { |
40 |
| - "pool":"ingress_lossless_pool", |
41 |
| - "size":"0", |
42 |
| - "dynamic_th":"-1" |
43 |
| - } |
44 |
| - }, |
45 |
| -{%- endmacro %} |
46 |
| - |
47 |
| -{%- macro generate_queue_buffers(port_names) %} |
48 |
| - "BUFFER_QUEUE": { |
49 |
| -{% for port in port_names.split(',') %} |
50 |
| - "{{ port }}|3-4": { |
51 |
| - "profile" : "ingress_lossless_profile" |
52 |
| - }, |
53 |
| -{% endfor %} |
54 |
| -{% for port in port_names.split(',') %} |
55 |
| - "{{ port }}|0-2": { |
56 |
| - "profile" : "egress_lossy_profile" |
57 |
| - }, |
58 |
| -{% endfor %} |
59 |
| -{% for port in port_names.split(',') %} |
60 |
| - "{{ port }}|5-6": { |
61 |
| - "profile" : "egress_lossy_profile" |
62 |
| - }{% if not loop.last %},{% endif %} |
63 |
| -{% endfor %} |
64 |
| - } |
65 |
| -{%- endmacro %} |
| 1 | +{%- set default_cable = '300m' %} |
| 2 | + |
| 3 | +{%- macro generate_port_lists(PORT_ALL) %} |
| 4 | + {# Generate list of ports #} |
| 5 | + {%- for port_idx in range(0,192,4) %} |
| 6 | + {%- if PORT_ALL.append("Ethernet%d" % (port_idx)) %}{%- endif %} |
| 7 | + {%- endfor %} |
| 8 | +{%- endmacro %} |
| 9 | + |
| 10 | +{%- macro generate_buffer_pool_and_profiles() %} |
| 11 | + "BUFFER_POOL": { |
| 12 | + "ingress_lossless_pool": { |
| 13 | + "size": "6441610000", |
| 14 | + "type": "both", |
| 15 | + "mode": "dynamic", |
| 16 | + "xoff": "11678515" |
| 17 | + } |
| 18 | + }, |
| 19 | + "BUFFER_PROFILE": { |
| 20 | + "ingress_lossy_profile": { |
| 21 | + "pool":"ingress_lossless_pool", |
| 22 | + "size":"1280", |
| 23 | + "xon_offset": "2560", |
| 24 | + "dynamic_th":"0" |
| 25 | + }, |
| 26 | + "egress_lossless_profile": { |
| 27 | + "pool":"ingress_lossless_pool", |
| 28 | + "size":"0", |
| 29 | + "static_th":"33030144" |
| 30 | + }, |
| 31 | + "egress_lossy_profile": { |
| 32 | + "pool":"ingress_lossless_pool", |
| 33 | + "size":"0", |
| 34 | + "dynamic_th":"-1" |
| 35 | + } |
| 36 | + }, |
| 37 | +{%- endmacro %} |
0 commit comments