quadlet: add InterfaceName option to network unit

I noticed this was missing, its a simple 1 to 1 mapping to
--interface-name.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
This commit is contained in:
Paul Holzinger
2025-06-04 16:46:39 +02:00
parent 2d234fab34
commit a0f7db44e8
4 changed files with 20 additions and 2 deletions

View File

@ -1393,6 +1393,7 @@ Valid options for `[Network]` are listed below:
| Driver=bridge | --driver bridge |
| Gateway=192.168.55.3 | --gateway 192.168.55.3 |
| GlobalArgs=--log-level=debug | --log-level=debug |
| InterfaceName=enp1 | --interface-name enp1 |
| Internal=true | --internal |
| IPAMDriver=dhcp | --ipam-driver dhcp |
| IPRange=192.168.55.128/25 | --ip-range 192.168.55.128/25 |
@ -1450,6 +1451,14 @@ escaped to allow inclusion of whitespace and other control characters.
This key can be listed multiple times.
### `InterfaceName=`
This option maps the *network_interface* option in the network config, see **podman network inspect**.
Depending on the driver, this can have different effects; for `bridge`, it uses the bridge interface name.
For `macvlan` and `ipvlan`, it is the parent device on the host. It is the same as `--opt parent=...`.
This is equivalent to the Podman `--interface-name` option.
### `Internal=` (defaults to `false`)
Restrict external access of this network.