{% if helpers.exists('OPNsense.TrafficShaper.rules.rule') %}
{%     for rule in helpers.toList('OPNsense.TrafficShaper.rules.rule', 'sequence', 'int') %}
{%         if rule.source.find(',') > -1 %}
[rule_{{loop.index}}_source]
table_name=__rule__{{ rule['@uuid'] }}__source
table_content={{rule.source}}
{%         endif %}
{%         if rule.destination.find(',') > -1 %}
[rule_{{loop.index}}_destination]
table_name=__rule__{{ rule['@uuid'] }}__destination
table_content={{rule.destination}}
{%         endif %}
{%     endfor %}
{% endif %}
