blob: 04c9dba8e99844adf9ead9701cee744c678ef21c [file] [log] [blame]
{
{%- for model in proto.messages %}
{%- if model.links %}
"{{ model.name }}": [
{% for l in model.links -%}
["{{ l.peer }}", "{{ l.src_port }}", "{{ l.dst_port }}"]{% if not loop.last %},{% endif %}
{%- endfor %}
{%- if model.rlinks %},{% endif %}
{% for l in model.rlinks -%}
["{{ l.peer }}", "{{ l.src_port }}", "{{ l.dst_port }}"]{% if not loop.last %},{% endif %}
{%- endfor %}
],{% endif -%}
{% endfor %}
}