2017-04-21 16:28:30 -05:00
|
|
|
[
|
2017-09-12 16:13:27 -05:00
|
|
|
{% if MIRROR_SESSION %}
|
|
|
|
{% for session in MIRROR_SESSION %}
|
2017-04-21 16:28:30 -05:00
|
|
|
{
|
2017-09-12 16:13:27 -05:00
|
|
|
"MIRROR_SESSION_TABLE:{{session}}": {
|
|
|
|
"src_ip": "{{ MIRROR_SESSION[session]['src_ip'] }}",
|
|
|
|
"dst_ip": "{{ MIRROR_SESSION[session]['dst_ip'] }}",
|
2017-07-07 06:26:53 -05:00
|
|
|
{% if onie_switch_asic == "mlnx" %}
|
2017-04-21 16:28:30 -05:00
|
|
|
"gre_type": "0x6558",
|
|
|
|
"queue": "1",
|
|
|
|
{% else %}
|
|
|
|
"gre_type": "0x88be",
|
|
|
|
"queue": "0",
|
|
|
|
{% endif %}
|
|
|
|
"dscp": "8",
|
|
|
|
"ttl": "255"
|
|
|
|
},
|
|
|
|
"OP": "SET"
|
2017-09-12 16:13:27 -05:00
|
|
|
}{% if not loop.last %},{% endif %}
|
|
|
|
|
|
|
|
{% endfor %}
|
2017-04-21 16:28:30 -05:00
|
|
|
{% endif %}
|
|
|
|
]
|
|
|
|
|