sonic-buildimage/platform/barefoot/peripheral_table.j2
Mariusz Stachura 9f88d03c2b
[QoS] Support dynamic headroom calculation for Barefoot platforms (#11708)
Signed-off-by: Mariusz Stachura <mariusz.stachura@intel.com>

What I did
Adding the dynamic headroom calculation support for Barefoot platforms.

Why I did it
Enabling dynamic mode for barefoot case.

How I verified it
The community tests are adjusted and pass.
2022-10-19 09:36:56 -07:00

19 lines
527 B
Django/Jinja

{%- if DEVICE_METADATA is defined and DEVICE_METADATA['localhost']['platform'] is defined %}
{%- set platform = DEVICE_METADATA['localhost']['platform'] %}
{%- endif -%}
{% set platform2gearbox = {
'x86_64-accton_as9516_32d-r0':'barefoot',
'x86_64-accton_as9516bf_32d-r0':'barefoot'
}
%}
{% set gearbox_type = platform2gearbox[platform] %}
{% if gearbox_type == 'barefoot' %}
{
"PERIPHERAL TABLE:barefoot": {
"gearbox_delay" : "365"
},
"OP": "SET"
}
{% endif %}