Browse Source

Merge "Add a new interface option 'require_interfaces'"

pull/123/head
Jakub Pavlik 7 years ago
parent
commit
1d1b23cdff
1 changed files with 9 additions and 0 deletions
  1. +9
    -0
      linux/network/interface.sls

+ 9
- 0
linux/network/interface.sls View File

{%- for param in network.interface_params %} {%- for param in network.interface_params %}
{{ set_param(param, interface) }} {{ set_param(param, interface) }}
{%- endfor %} {%- endfor %}
{%- if interface.require_interfaces is defined %}
- require:
{%- for netif in interface.get('require_interfaces', []) %}
- network: linux_interface_{{ netif }}
{%- endfor %}
{%- for network in interface.get('use_ovs_ports', []) %}
- cmd: ovs_port_up_{{ network }}
{%- endfor %}
{%- endif %}
{%- if interface.type == 'bridge' %} {%- if interface.type == 'bridge' %}
- bridge: {{ interface_name }} - bridge: {{ interface_name }}
- delay: 0 - delay: 0

Loading…
Cancel
Save