|
|
|
|
|
|
|
|
{%- 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 |