{% if br.links is defined and br.links and br.links | length > 0 %}
bridge_ports{% for link in br.links %} {% if br.macvlan is defined and br.macvlan %}{{br.name}}{{link | regex_replace('\.', '-')}}{% else %}{{link}}{% endif %}{% endfor %}
bridge_ports{% for link in br.links %} {% if br.macvlan is defined and br.macvlan %}{{br.name}}{{link | regex_replace('\.', '')}}{% else %}{{link}}{% endif %}{% endfor %}