mirror of
https://github.com/linux-system-roles/network.git
synced 2026-01-23 10:25:28 +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>
19 lines
617 B
YAML
19 lines
617 B
YAML
# SPDX-License-Identifier: BSD-3-Clause
|
|
---
|
|
- name: "** TEST check bond settings"
|
|
command: cat
|
|
/sys/class/net/{{ controller_device }}/bonding/'{{ item.key }}'
|
|
register: result
|
|
until: "'{{ item.value }}' in result.stdout"
|
|
loop: "{{ bond_options_to_assert }}"
|
|
changed_when: false
|
|
- name: Include the task 'assert_IPv4_present.yml'
|
|
include_tasks: assert_IPv4_present.yml
|
|
vars:
|
|
interface: "{{ controller_device }}"
|
|
address: '192.0.2'
|
|
- name: Include the task 'assert_IPv6_present.yml'
|
|
include_tasks: assert_IPv6_present.yml
|
|
vars:
|
|
interface: "{{ controller_device }}"
|
|
address: '2001'
|