c9cc7aea41
Modify minigraph parser output format so it fit DB schema Modify configuration templates to fit new schema Systemd services dependencies are modified so database starts before any configuration consumer
16 lines
277 B
Django/Jinja
16 lines
277 B
Django/Jinja
[
|
|
{% if PORT %}
|
|
{% for port in PORT %}
|
|
{% if PORT[port].has_key('speed') %}
|
|
{
|
|
"PORT_TABLE:{{ port }}": {
|
|
"speed": "{{ PORT[port]['speed'] }}"
|
|
},
|
|
"OP": "SET"
|
|
}{% if not loop.last %},{% endif %}
|
|
|
|
{% endif %}
|
|
{% endfor %}
|
|
{% endif %}
|
|
]
|