Przeglądaj źródła

Merge pull request #54 from mnederlof/master

In setups with more than 1 interface / bond, it does not work
tags/mcp0.5
Filip Pytloun 8 lat temu
rodzic
commit
de88aebf52
1 zmienionych plików z 2 dodań i 2 usunięć
  1. +2
    -2
      linux/network/interface.sls

+ 2
- 2
linux/network/interface.sls Wyświetl plik

@@ -39,9 +39,9 @@ ovs_bridge_{{ interface_name }}:

{%- set int_name = int.get('name', int_name) %}

{%- if int.ovs_bridge is defined %}
{%- if int.ovs_bridge is defined and interface_name == int.ovs_bridge %}

add_int_to_ovs_bridge_{{ interface_name }}:
add_int_{{ int_name }}_to_ovs_bridge_{{ interface_name }}:
cmd.run:
- unless: ovs-vsctl show | grep {{ int_name }}
- name: ovs-vsctl add-port {{ interface_name }} {{ int_name }}

Ładowanie…
Anuluj
Zapisz