blob: e455129401c767c7a51f1bdb600a26f8c47af1ee [file] [log] [blame]
Sapan Bhatia09174022017-06-02 13:39:28 +02001{
2{%- for model in proto.messages %}
3{%- if model.links %}
4 "{{ model.name }}": [
5 {% for l in model.links -%}
6 ["{{ l.peer }}", "{{ l.src_port }}", "{{ l.dst_port }}"]{% if not loop.last %},{% endif %}
7 {%- endfor %}
Zack Williams9a42f872019-02-15 17:56:04 -07008 {%- if model.rlinks %},{% endif %}
Sapan Bhatia09174022017-06-02 13:39:28 +02009 {% for l in model.rlinks -%}
10 ["{{ l.peer }}", "{{ l.src_port }}", "{{ l.dst_port }}"]{% if not loop.last %},{% endif %}
11 {%- endfor %}
12 ],{% endif -%}
13{% endfor %}
14}