mirror of
https://github.com/containers/podman.git
synced 2025-10-25 18:25:59 +08:00
Previously, the following network block did not update using
docker-compose:
```
networks:
default:
driver: bridge
driver_opts:
mtu: 9000
```
In the API, the network options were previously not being handled when the
network was being created. I translated the docker options into podman
options, and added the options to the network.
When doing `podman network inspect <network>`, the results now contain
`"mtu": "9000"`
Fixes: #14482
Signed-off-by: Jake Correnti <jcorrenti13@gmail.com>
11 lines
516 B
Bash
11 lines
516 B
Bash
# -*- bash -*-
|
|
|
|
podman network inspect --format='{{ range . }} {{ .Options.mtu }} {{ end }}' update_network_mtu_default
|
|
like "$output" "9000" "$testname : network mtu is set"
|
|
|
|
podman network inspect --format='{{ range . }} {{ .NetworkInterface }} {{ end }}' update_network_mtu_default
|
|
like "$output" "docker0" "$testname: network interface is set"
|
|
|
|
podman network inspect --format='{{ range . }} {{ .Options.mode }} {{ end }}' update_network_mtu_macvlan_net
|
|
like "$output" "bridge" "$testname : network mode is set"
|