Browse Source

ovs advanced options

tags/2016.12
Jakub Pavlik 8 years ago
parent
commit
02e681ce7f
1 changed files with 8 additions and 1 deletions
  1. +8
    -1
      linux/files/ovs_port

+ 8
- 1
linux/files/ovs_port View File

auto {{ port_name }} auto {{ port_name }}
allow-{{ port.bridge }} {{ port_name }} allow-{{ port.bridge }} {{ port_name }}
iface {{ port_name }} inet manual
iface {{ port_name }} inet {{ port.get('proto', 'manual') }}
ovs_type OVSIntPort ovs_type OVSIntPort
mtu {{ port.get('mtu', '1500') }} mtu {{ port.get('mtu', '1500') }}
ovs_bridge {{ port.bridge }} ovs_bridge {{ port.bridge }}
{%- if port.get('proto', 'manual') == 'static' %}
address {{ port.address }}
netmask {{ port.netmask }}
{%- endif %}
{%- if port.ovs_options is defined %}
ovs_options {{ port.ovs_options }}
{%- endif %}

Loading…
Cancel
Save