mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
091bebcbf7
This commit adds support for vlan update on openvswitch_bridge module.
48 lines
825 B
YAML
48 lines
825 B
YAML
---
|
|
|
|
- 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:
|
|
bridge: br-test
|
|
register: result
|
|
|
|
- assert:
|
|
that:
|
|
- result is changed
|
|
|
|
- name: Create bridge again (idempotent)
|
|
openvswitch_bridge:
|
|
bridge: br-test
|
|
register: result
|
|
|
|
- assert:
|
|
that:
|
|
- result is not changed
|
|
|
|
- name: Add fake bridge
|
|
openvswitch_bridge:
|
|
bridge: fake-br-test
|
|
parent: br-test
|
|
vlan: 100
|
|
register: result
|
|
|
|
- assert:
|
|
that:
|
|
- result is changed
|
|
|
|
- name: Change fake bridge vlan
|
|
openvswitch_bridge:
|
|
bridge: fake-br-test
|
|
parent: br-test
|
|
vlan: 300
|
|
register: result
|
|
|
|
- assert:
|
|
that:
|
|
- result is changed
|
|
|
|
- name: Tear down test bridges
|
|
command: ovs-vsctl del-br br-test
|