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

@@ -183,6 +183,15 @@ linux_interface_{{ interface_name }}:
{%- for param in network.interface_params %}
{{ set_param(param, interface) }}
{%- 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' %}
- bridge: {{ interface_name }}
- delay: 0

Loading…
Cancel
Save