mirror of
https://github.com/containers/podman.git
synced 2025-09-20 11:13:54 +08:00

Quadlet `[Network]` does not accept `Options=key` for `podman network create --opt key`. Options have to be provided in `key=value` format, where the `=` is required even though the value may be empty. One usage example is `Options=isolate=true`. In this case, passing `netavark` an empty `isolate` value may be a valid/parseable setting: `Options=isolate=`, equivalent to `Options=isolate=false`. This commit documents the explicit `Options=key=value` usage. Compare to `[Network]` tests, which use `key=value`. Usage verified locally by inspecting the generated network in `/run/user/${UID}/systemd/generator/example-network.service` and `podman network inspect systemd-example` using podman v4.9.2 and netavark v1.10.2. See - https://docs.podman.io/en/latest/markdown/podman-systemd.unit.5.html#network-units-network - https://github.com/containers/podman/blob/v4.9.2/test/e2e/quadlet/options.network - https://github.com/containers/podman/blob/v4.9.2/test/e2e/quadlet/options.multiple.network - https://github.com/containers/netavark/blob/v1.10.2/src/network/bridge.rs#L824-L833 Signed-off-by: Joel Purra <mig@joelpurra.se>