Fix ovs integration tests initial setup (#33136)
This commit is contained in:
parent
de1bfde2d8
commit
be7a3adeb7
2 changed files with 10 additions and 1 deletions
|
@ -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:
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue