9f88d03c2b
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.
19 lines
527 B
Django/Jinja
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 %}
|