Browse Source

added dependency create ovsbridge first

pull/172/head
Martin Horak 6 years ago
parent
commit
80c367fb0d
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      linux/network/interface.sls

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

cmd.run: cmd.run:
- name: ovs-vsctl add-bond {{ interface.bridge }} {{ interface_name }} {{ interface.slaves }} bond_mode={{ interface.mode }} - name: ovs-vsctl add-bond {{ interface.bridge }} {{ interface_name }} {{ interface.slaves }} bond_mode={{ interface.mode }}
- unless: ovs-vsctl show | grep -A 2 'Port.*{{ interface_name }}.' - unless: ovs-vsctl show | grep -A 2 'Port.*{{ interface_name }}.'
- require:
- ovs_bridge_{{ interface.bridge }}_present


{%- elif interface.type == 'ovs_port' %} {%- elif interface.type == 'ovs_port' %}



Loading…
Cancel
Save