mirror of
https://github.com/linux-system-roles/network.git
synced 2026-01-23 02:15:17 +00:00
The new testing format is more concise and easier to debug when test failure happens. Signed-off-by: Wen Liang <liangwen12year@gmail.com>
26 lines
774 B
YAML
26 lines
774 B
YAML
# SPDX-License-Identifier: BSD-3-Clause
|
|
---
|
|
- name: Clean up the test devices and the connection profiles
|
|
tags:
|
|
- "tests::cleanup"
|
|
block:
|
|
- name: Import network role
|
|
import_role:
|
|
name: linux-system-roles.network
|
|
vars:
|
|
network_connections:
|
|
- name: "{{ port2_profile }}"
|
|
persistent_state: absent
|
|
state: down
|
|
- name: "{{ port1_profile }}"
|
|
persistent_state: absent
|
|
state: down
|
|
- name: "{{ controller_profile }}"
|
|
persistent_state: absent
|
|
state: down
|
|
failed_when: false
|
|
- name: Delete the device '{{ controller_device }}'
|
|
command: ip link del {{ controller_device }}
|
|
failed_when: false
|
|
changed_when: false
|
|
...
|