blob: 1c807ca36c676da507631446d904b2b3eb05802d [file] [log] [blame]
auto {{ port_name }}
allow-{{ port.bridge }} {{ port_name }}
iface {{ port_name }} inet {{ port.get('proto', 'manual') }}
ovs_type OVSIntPort
mtu {{ port.get('mtu', '1500') }}
ovs_bridge {{ port.bridge }}
{%- if port.get('proto', 'manual') == 'static' %}
address {{ port.address }}
netmask {{ port.netmask }}
{%- endif %}
{%- if port.gateway is defined %}
gateway {{ port.gateway }}
{%- endif %}
{%- if port.ovs_options is defined %}
ovs_options {{ port.ovs_options }}
{%- endif %}