Sapan Bhatia | 1e02177 | 2017-08-19 02:15:48 -0400 | [diff] [blame] | 1 | { {%- 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 Bhatia | 0917402 | 2017-06-02 13:39:28 +0200 | [diff] [blame] | 9 | } |