sonic-buildimage/dockers/docker-orchagent/mirror.json.j2
Taoyu Li c9cc7aea41 [configdb] Migrate minigraph configurations to DB (#942)
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
2017-09-12 14:13:27 -07:00

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 %}
]