Browse Source

Fix unless check when creating ovs peer interface

Interface name was hardcoded when checking if peer is set for
ovs interface.
This patch unhardcode interface name.

Change-Id: Id465d5f84751b5516aebc9d80716d21d14e56abc
pull/115/head
Vasyl Saienko 7 years ago
parent
commit
dfe8e1ccef
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      linux/network/interface.sls

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

@@ -70,7 +70,7 @@ ovs_port_set_type_{{ interface_name }}:
ovs_port_set_peer_{{ interface_name }}:
cmd.run:
- name: ovs-vsctl set interface {{ interface_name }} options:peer={{ interface.peer }}
- unless: ovs-vsctl show | grep -A 2 'Interface floating-to-prv' | grep {{ interface.peer }}
- unless: ovs-vsctl show | grep -A 2 'Interface {{ interface_name }}' | grep {{ interface.peer }}

{%- else %}


Loading…
Cancel
Save