auto {{ bridge_name }} | |
iface {{ bridge_name }} inet {{ bridge.get('proto', 'static' if bridge.address is defined else 'manual') }} | |
mtu {{ bridge.get('mtu', '1500') }} | |
{%- if bridge.address is defined %} | |
address {{ bridge.address }} | |
netmask {{ bridge.netmask }} | |
{%- endif %} | |
{%- if bridge.gateway is defined %} | |
gateway {{ bridge.gateway }} | |
{%- endif %} | |
{%- if bridge.name_servers is defined %} | |
dns-nameservers {{ bridge.name_servers|join(' ') }} | |
{%- endif %} |