Browse Source

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 years ago
parent
commit
de88aebf52
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      linux/network/interface.sls

+ 2
- 2
linux/network/interface.sls View File

@@ -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 }}

Loading…
Cancel
Save