1
0
Fork 0
mirror of https://github.com/containers/ansible-podman-collections.git synced 2026-06-25 22:05:47 +00:00
ansible-podman-collections/plugins
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
..
become Run black -l 120 on all files, again (#943) 2025-06-26 13:24:44 +03:00
connection Fix Ansible warning about test utils (#999) 2026-01-16 15:41:09 +02:00
inventory Add inventory plugins for buildah and podman (#963) 2025-08-13 16:48:50 +03:00
module_utils Fix podman_image build ignoring arch (#802) (#1036) 2026-05-28 16:33:12 +03:00
modules Fix podman_network not idempotent with IPv6 addresses, fix #1041 (#1042) 2026-06-17 16:33:31 +03:00