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
25 lines
573 B
Django/Jinja
25 lines
573 B
Django/Jinja
[
|
|
{% if MIRROR_SESSION %}
|
|
{% for session in MIRROR_SESSION %}
|
|
{
|
|
"MIRROR_SESSION_TABLE:{{session}}": {
|
|
"src_ip": "{{ MIRROR_SESSION[session]['src_ip'] }}",
|
|
"dst_ip": "{{ MIRROR_SESSION[session]['dst_ip'] }}",
|
|
{% if onie_switch_asic == "mlnx" %}
|
|
"gre_type": "0x6558",
|
|
"queue": "1",
|
|
{% else %}
|
|
"gre_type": "0x88be",
|
|
"queue": "0",
|
|
{% endif %}
|
|
"dscp": "8",
|
|
"ttl": "255"
|
|
},
|
|
"OP": "SET"
|
|
}{% if not loop.last %},{% endif %}
|
|
|
|
{% endfor %}
|
|
{% endif %}
|
|
]
|
|
|