blob: 74a8647f74595c697017470035b68aab682b44fa [file] [log] [blame]
Sapan Bhatia1e021772017-08-19 02:15:48 -04001{ {%- for model in proto.messages %} "{{ model.name }}": [
2 {% for l in xproto_base_links(model, proto.message_table) + model.links -%}
3 {% if "Controller" + l.peer.name in proto.message_names -%}
4 ["Controller{{ l.peer.name }}", "{{ l.src_port }}", "{{ xproto_camel_to_underscore(l.peer.name).lower() }}"],
5 {% endif %}
6 ["{{ l.peer.name }}", "{{ l.src_port }}", ""]{% if not loop.last %},{% endif %}
7 {% endfor %}
8 ]{{ "," if not loop.last }}{% endfor %}
Sapan Bhatia09174022017-06-02 13:39:28 +02009}