this snippet of the templates/bridge_Debian.j2 template:
{% if item.ports is defined %}
bridge_ports {{ item.ports|join(' ') }}{% if item.ports | default([], true) | length == 0 %}none{% endif %}
{% endif %}
{% if item.stp is defined %}
bridge_stp {{ item.stp }}
{% endif %}
generates a file in /etc/network/interfaces.d/ifcfg-external-br0 with the following line:
bridge_ports eno1bridge_stp on
note the lack of newline between the bridge_ports and bridge_stp entries.
In particular when I have an interface
this snippet of the templates/bridge_Debian.j2 template: {% if item.ports is defined %} bridge_ports {{ item.ports|join(' ') }}{% if item.ports | default([], true) | length == 0 %}none{% endif %} {% endif %} {% if item.stp is defined %} bridge_stp {{ item.stp }} {% endif %}
generates a file in /etc/network/interfaces.d/ifcfg-external-br0 with the following line: bridge_ports eno1bridge_stp on
note the lack of newline between the bridge_ports and bridge_stp entries.