{% for p in src_ports|ports %}
{% if span_dir in ('both', 'rx') %}
set forwarding-options analyzer SPAN{{ session }} input ingress interface {{ p }}
{% endif %}
{% if span_dir in ('both', 'tx') %}
set forwarding-options analyzer SPAN{{ session }} input egress interface {{ p }}
{% endif %}
{% endfor %}
set forwarding-options analyzer SPAN{{ session }} output interface {{ dst_port }}
