1
0
Fork 0
mirror of https://github.com/containers/ansible-podman-collections.git synced 2026-06-29 23:49:12 +00:00
ansible-podman-collections/tests
Sergey efa337c536
Fix podman_network not idempotent with IPv6 addresses, fix #1041 (#1042)
* Fix podman_network not idempotent with IPv6 addresses, fix #1041

Normalize IPv6 addresses and subnets before comparing in diff methods
using Python's ipaddress module. Different notations of the same IPv6
address (e.g. "::1" vs "0:1") are now correctly recognized as equal,
preventing unnecessary network recreation.

- Guard _normalize_ip/_normalize_subnet with HAS_IP_ADDRESS_MODULE check
- Normalize user-supplied route strings in diffparam_route
- Keep _lease_range_to_str as @staticmethod
- Catch TypeError in _normalize_ip/_normalize_subnet for None inputs
- Use .get("gateway") with filter in multi-gateway join to avoid KeyError
- Fix implicit string concatenation lint warnings
---------

Signed-off-by: Sagi Shnaidman <sshnaidm@redhat.com>
2026-06-17 16:33:31 +03:00
..
integration/targets Fix podman_network not idempotent with IPv6 addresses, fix #1041 (#1042) 2026-06-17 16:33:31 +03:00
sanity Fixes for new Ansible version (#1040) 2026-06-06 12:58:18 +03:00
unit/plugins Fix podman_quadlet_build and write unittests (#1027) 2026-04-29 19:57:15 +03:00
.gitignore Migration of Podman modules from Ansible to Containers 2020-03-06 16:29:20 +02:00