Saltstack Official Linux Formula
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
517B

  1. auto {{ port_name }}
  2. allow-{{ port.bridge }} {{ port_name }}
  3. iface {{ port_name }} inet {{ port.get('proto', 'manual') }}
  4. ovs_type {{ port.get('ovs_port_type', 'OVSIntPort') }}
  5. mtu {{ port.get('mtu', '1500') }}
  6. ovs_bridge {{ port.bridge }}
  7. {%- if port.get('proto', 'manual') == 'static' %}
  8. address {{ port.address }}
  9. netmask {{ port.netmask }}
  10. {%- endif %}
  11. {%- if port.gateway is defined %}
  12. gateway {{ port.gateway }}
  13. {%- endif %}
  14. {%- if port.ovs_options is defined %}
  15. ovs_options {{ port.ovs_options }}
  16. {%- endif %}