Fix ovs integration tests initial setup (#33136)

This commit is contained in:
Ricardo Carrillo Cruz 2017-11-21 13:34:27 +01:00 committed by GitHub
parent de1bfde2d8
commit be7a3adeb7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 1 deletions

View file

@ -2,6 +2,7 @@
- name: Make sure test bridge does not exist before tests
command: ovs-vsctl del-br br-test
ignore_errors: yes
- name: Create bridge
openvswitch_bridge:

View file

@ -1,6 +1,11 @@
---
- command: ovs-vsctl add-br br-test
- name: Make sure test bridge does not exist before tests
command: ovs-vsctl del-br br-test
ignore_errors: yes
- name: Create test bridge
command: ovs-vsctl add-br br-test
- name: Create bridge
openvswitch_db:
@ -81,3 +86,6 @@
- assert:
that:
- "result.changed == false"
- name: Tear down test bridge
command: ovs-vsctl del-br br-test