mirror of
https://github.com/containers/podman.git
synced 2025-10-13 01:06:10 +08:00
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:
@ -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.
|
||||
|
Reference in New Issue
Block a user