mirror of
https://github.com/linux-system-roles/network.git
synced 2026-07-24 03:17:38 +00:00
Add support for the `wait_ip` property, the system will consider
connection activated only when specific IP stack is configured.
This enables flexibility in scenarios such as
IPv6-only networks, where the overall network configuration can still
succeed when IPv4 configuration fails but IPv6 completes successfully.
The `wait_ip` can be configured with the following possible values:
* "any": System will consider interface activated when any IP stack is
configured.
* "ipv4": System will wait IPv4 been configured.
* "ipv6": System will wait IPv6 been configured.
* "ipv4+ipv6": System will wait both IPv4 and IPv6 been configured.
Resolves: https://issues.redhat.com/browse/RHEL-63026
Signed-off-by: Wen Liang <wenliang@redhat.com>
39 lines
1.1 KiB
YAML
39 lines
1.1 KiB
YAML
# SPDX-License-Identifier: BSD-3-Clause
|
|
---
|
|
- name: Play for testing dummy connection
|
|
hosts: all
|
|
vars:
|
|
autocon_retries: 2
|
|
interface: dummy0
|
|
wait_ip: ipv4+ipv6
|
|
profile: "{{ interface }}"
|
|
lsr_fail_debug:
|
|
- __network_connections_result
|
|
tasks:
|
|
- name: Show playbook name
|
|
debug:
|
|
msg: "this is: playbooks/tests_dummy.yml"
|
|
tags:
|
|
- always
|
|
|
|
- name: Test the dummy connection
|
|
tags:
|
|
- tests::dummy:create
|
|
block:
|
|
- name: Include the task 'run_test.yml'
|
|
include_tasks: tasks/run_test.yml
|
|
vars:
|
|
lsr_description: Create a dummy interface
|
|
lsr_setup:
|
|
- tasks/delete_interface.yml
|
|
- tasks/assert_device_absent.yml
|
|
lsr_test:
|
|
- tasks/create_dummy_profile.yml
|
|
lsr_assert:
|
|
- tasks/assert_profile_present.yml
|
|
- tasks/assert_device_present.yml
|
|
- tasks/assert_autoconnect_retries.yml
|
|
- tasks/assert_may_fail.yml
|
|
lsr_cleanup:
|
|
- tasks/cleanup_profile+device.yml
|
|
- tasks/check_network_dns.yml
|