spiegel_podman/pkg/api
aayushbaluni 9f6b99950b fix: include IPRange in Docker-compat network IPAM config
The Docker-compatible network API omitted the IPRange field from the IPAM
config even though Libpod stores this data, so tools reading the Docker
API could not see the configured IP range.

Map Libpod's LeaseRange to Docker-compatible IPAMConfig.IPRange when it
aligns with a full CIDR span derived from FirstIPInSubnet/LastIPInSubnet,
and add an integration test that creates a network via the compat API with
an explicit IPRange and asserts it is returned on inspect.

The span is matched with bit arithmetic rather than by trying every prefix
length: the network address is start-1, and XORing that with end yields the
host mask, which identifies the prefix in a single pass. net/netip carries
the address handling throughout - Unmap collapses 4-in-6, Prev gives the
network address, and Masked confirms the network is aligned to the prefix.

Fixes: #28378

Signed-off-by: aayushbaluni <73417844+aayushbaluni@users.noreply.github.com>
2026-09-16 10:01:35 +05:30
..
grpcpb pkg/api/grpcpb: auto-format generated protobuf files 2026-05-07 13:30:23 -04:00
handlers fix: include IPRange in Docker-compat network IPAM config 2026-09-16 10:01:35 +05:30
server pkg/api/server: document missing manifest push and create params 2026-08-18 12:39:30 +05:30
types set !remote build tags where needed 2024-08-19 11:41:28 +02:00
Makefile RUN-4539: Change podman module paths 2026-04-22 14:02:25 -05:00
tags.yaml [docs] Refactor Artifact API documentation 2025-08-19 10:22:00 +10:00