network/tests/tasks
Wen Liang fe7c6c6fd5 fix: Refine MAC validation using interface name
When a user provides both an interface name and a MAC address, the
current validation process retrieves sysfs link info separately using
the interface name and the MAC address, then compares the results. If
the information doesn't match, an error is raised.

However, this approach may trigger false alarms because retrieving the
link info by MAC might return the link info that only matches the
current MAC instead of the permanent MAC. Since the interface name is
unique within the kernel, a more robust validation method is to fetch
the MAC address using the interface name and then compare it directly
with the user-provided MAC address.

Resolves: https://issues.redhat.com/browse/RHEL-84362

Signed-off-by: Wen Liang <liangwen12year@gmail.com>
2025-03-31 22:25:32 -04:00
..
provider ansible-lint: Fix yaml[truthy] failures 2023-02-20 15:00:28 +01:00
activate_profile.yml add support for ansible-core 2.11 ansible-lint, ansible-test 2021-10-11 12:03:00 -06:00
assert_autoconnect_retries.yml feat: Support autoconnect_retries 2024-10-08 10:25:58 -04:00
assert_bond_options.yml test: fix some Ansible warnings not caught by lint 2024-07-25 08:35:17 -06:00
assert_bond_port_profile_present.yml test: fix some Ansible warnings not caught by lint 2024-07-25 08:35:17 -06:00
assert_controller_device_present.yml test: Rewrite tests_bond_options.yml in the new testing format 2024-02-14 20:20:49 -07:00
assert_device_absent.yml ansible-lint: Fix name[missing] and name[play] failures 2023-04-10 17:49:07 +02:00
assert_device_present.yml ansible-lint: Fix name[missing] and name[play] failures 2023-04-10 17:49:07 +02:00
assert_dhcp_device_present.yml test: Rewrite tests_bond_options.yml in the new testing format 2024-02-14 20:20:49 -07:00
assert_IPv4_present.yml test: fix some Ansible warnings not caught by lint 2024-07-25 08:35:17 -06:00
assert_IPv6_present.yml test: fix some Ansible warnings not caught by lint 2024-07-25 08:35:17 -06:00
assert_may_fail.yml feat: Support wait_ip property 2024-10-29 09:43:38 -04:00
assert_network_connections_failed.yml fix: Ask user's consent to restart NM due to wireless or team interfaces 2024-03-15 17:33:36 -04:00
assert_network_connections_succeeded.yml fix: Remove MAC address matching from SysUtil.link_info_find() 2025-03-31 22:21:18 -04:00
assert_output_in_stderr_without_warnings.yml library: Separate debug and info logs from warnings 2020-05-06 21:57:34 +02:00
assert_package_installed.yml fix: Ask user's consent to restart NM due to wireless or team interfaces 2024-03-15 17:33:36 -04:00
assert_profile_absent.yml ansible-lint: Fix name[missing] and name[play] failures 2023-04-10 17:49:07 +02:00
assert_profile_present.yml ansible-lint: Fix name[missing] and name[play] failures 2023-04-10 17:49:07 +02:00
check_network_dns.yml test: Add DNS, routes and network connectivity checks during cleanup 2024-02-14 20:20:49 -07:00
cleanup_802_1x_server.yml test: improve bond test failure debugging 2024-02-27 13:17:16 -05:00
cleanup_bond_profile+device.yml test: Rewrite tests_bond_options.yml in the new testing format 2024-02-14 20:20:49 -07:00
cleanup_mock_wifi.yml Cleaning up ansible-lint errors except '106', '303' and '403' 2021-04-15 20:53:53 +02:00
cleanup_profile+device.yml add support for ansible-core 2.11 ansible-lint, ansible-test 2021-10-11 12:03:00 -06:00
cleanup_vlan_and_parent_profile+device.yml fix: Remove MAC address matching from SysUtil.link_info_find() 2025-03-31 22:21:18 -04:00
create_and_remove_interface.yml ansible-lint: Fix name[missing] and name[play] failures 2023-04-10 17:49:07 +02:00
create_bond_port_match_by_mac.yml fix: Refine MAC validation using interface name 2025-03-31 22:25:32 -04:00
create_bond_profile.yml test: Rewrite tests_bond_options.yml in the new testing format 2024-02-14 20:20:49 -07:00
create_bond_profile_reconfigure.yml test: Rewrite tests_bond_options.yml in the new testing format 2024-02-14 20:20:49 -07:00
create_bridge_profile.yml add support for ansible-core 2.11 ansible-lint, ansible-test 2021-10-11 12:03:00 -06:00
create_bridge_profile_no_autoconnect.yml add support for ansible-core 2.11 ansible-lint, ansible-test 2021-10-11 12:03:00 -06:00
create_dummy_profile.yml feat: Support wait_ip property 2024-10-29 09:43:38 -04:00
create_mac_address_match.yml fix: Remove MAC address matching from SysUtil.link_info_find() 2025-03-31 22:21:18 -04:00
create_team_profile.yml tests: Consent to restart network when specifying wireless or team connections 2024-03-15 17:33:36 -04:00
create_test_interfaces_with_dhcp.yml test: do not need to install from epel or pip 2025-03-17 12:02:42 -06:00
create_wireless_profile_restart_network.yml fix: Ask user's consent to restart NM due to wireless or team interfaces 2024-03-15 17:33:36 -04:00
delete_interface.yml ansible-lint: Fix name[casing] warnings 2023-03-27 16:25:03 +02:00
el_repo_setup.yml test: do not need to install from epel or pip 2025-03-17 12:02:42 -06:00
find+remove_profile.yml fix: Remove MAC address matching from SysUtil.link_info_find() 2025-03-31 22:21:18 -04:00
get_current_interfaces.yml Cleaning up ansible-lint errors except '106', '303' and '403' 2021-04-15 20:53:53 +02:00
get_interface_stat.yml Rename files to be valid python identifiers 2020-04-22 17:40:03 +02:00
get_modules_and_utils_paths.yml ansible-lint: Fix name[casing] warnings 2023-03-27 16:25:03 +02:00
get_NetworkManager_NVR.yml ansible-lint: Fix name[missing] and name[play] failures 2023-04-10 17:49:07 +02:00
get_profile_stat.yml Fingerprint RHEL System Role managed config files 2023-03-30 13:38:19 -06:00
manage_test_interface.yml ci: Check spelling with codespell 2025-02-14 11:06:01 +00:00
ostree_systems_check.yml test: improve name text for skipped ostree tests 2024-03-25 17:30:00 -06:00
remove+down_profile.yml add support for ansible-core 2.11 ansible-lint, ansible-test 2021-10-11 12:03:00 -06:00
remove_package.yml fix: Ask user's consent to restart NM due to wireless or team interfaces 2024-03-15 17:33:36 -04:00
remove_profile.yml add support for ansible-core 2.11 ansible-lint, ansible-test 2021-10-11 12:03:00 -06:00
remove_test_interfaces_with_dhcp.yml test: use is-active instead of is-enabled to check for firewalld 2024-08-20 11:16:28 -06:00
run_test.yml ansible-lint: Fix name[missing] and name[play] failures 2023-04-10 17:49:07 +02:00
setup_802.1x.yml style: ansible-lint - fix missing YAML document start 2023-04-28 09:15:50 -06:00
setup_802_1x_server.yml test: Retry until success when installing package 2024-02-14 20:20:49 -07:00
setup_mock_wifi.yml test: Retry until success when installing package 2024-02-14 20:20:49 -07:00
setup_mock_wifi_wpa3_owe.yml test: improve name text for skipped ostree tests 2024-03-25 17:30:00 -06:00
setup_mock_wifi_wpa3_sae.yml test: improve name text for skipped ostree tests 2024-03-25 17:30:00 -06:00
setup_test_interface.yml ansible-lint: Fix name[missing] and name[play] failures 2023-04-10 17:49:07 +02:00
show_interfaces.yml ansible-lint: Fix name[missing] and name[play] failures 2023-04-10 17:49:07 +02:00
start_mock_wifi.yml wifi: Add Opportunistic Wireless Encryption (OWE) support 2021-05-24 10:51:01 +08:00
test_802.1x_capath.yml refactor: improve support for ostree systems 2023-11-29 07:05:00 -07:00