13 lines
828 B
Django/Jinja
13 lines
828 B
Django/Jinja
{
|
|
"asic_type": "{{ asic_type }}",
|
|
{% if asic_subtype is defined and asic_subtype != '' -%}
|
|
"asic_subtype": "{{ asic_subtype }}",
|
|
{% endif -%}
|
|
"asic_id": "{{ DEVICE_METADATA.localhost.asic_id }}",
|
|
"mac": "{{ DEVICE_METADATA.localhost.mac }}",
|
|
"resource_type": "{{ DEVICE_METADATA.localhost.resource_type }}",
|
|
"synchronous_mode": {% if DEVICE_METADATA.localhost.synchronous_mode == "disable" %}"disable"{% else %}"enable"{% endif %},
|
|
"dual_tor": {% if DEVICE_METADATA.localhost.type == "ToRRouter" and DEVICE_METADATA.localhost.subtype == "DualToR" %}"enable"{% else %}"disable"{% endif %},
|
|
"dscp_remapping": {% if SYSTEM_DEFAULTS is defined and SYSTEM_DEFAULTS.tunnel_qos_remap is defined and SYSTEM_DEFAULTS.tunnel_qos_remap.status == "enabled" %}"enable"{% else %}"disable"{% endif %}
|
|
}
|