mirror of
https://github.com/linux-system-roles/network.git
synced 2026-01-23 10:25:28 +00:00
The link_info_find() function previously allowed searching for links by MAC address, but this introduced ambiguity and could cause false alarms in certain cases (e.g. retrieving the link info by MAC might return the link info that only matches the current MAC instead of the permanent MAC). To ensure reliable behavior, this function should accept and match the link info only by interface name. To address the issues, the following changes were made: - Removed MAC address matching logic to eliminate ambiguity. - Simplified the function to only check ifname, making it more predictable. - Updated all callers to adapt to this change, ensuring correctness. - When a profile is tied to an interface via mac only, the validation of the existence of interface will now be delegated to NetworkManager instead. Resolves: https://issues.redhat.com/browse/RHEL-84197 Signed-off-by: Wen Liang <liangwen12year@gmail.com>
8 lines
298 B
YAML
8 lines
298 B
YAML
# SPDX-License-Identifier: BSD-3-Clause
|
|
---
|
|
- name: Assert that configuring network connections is succeeded
|
|
assert:
|
|
that:
|
|
- __network_connections_result.failed == false
|
|
msg: Configuring network connections is failed with the error
|
|
"{{ __network_connections_result.stderr }}"
|