sonic-buildimage/dockers/docker-orchagent/ports.json.j2
2017-12-12 20:07:42 -08:00

17 lines
339 B
Django/Jinja

[
{% if PORT %}
{% for port in PORT %}
{% if PORT[port].has_key('speed') %}
{
"PORT_TABLE:{{ port }}": {
"speed": "{{ PORT[port]['speed'] }}",
"description": "{{ PORT[port]['description'] }}"
},
"OP": "SET"
}{% if not loop.last %},{% endif %}
{% endif %}
{% endfor %}
{% endif %}
]