diff options
author | bitstrings <pino.silvaggio@gmail.com> | 2021-01-29 23:37:14 -0500 |
---|---|---|
committer | Matthew Heon <matthew.heon@pm.me> | 2021-02-04 14:19:00 -0500 |
commit | 6d9217228b87e5ea5b0e215701d8e001c44e1917 (patch) | |
tree | 3f707badef40577d69bfb9ffc7210f920ebea573 /test/e2e | |
parent | 3b712d96157b718e76ea7fe5b5bb91a5ddd9f2a4 (diff) | |
download | podman-6d9217228b87e5ea5b0e215701d8e001c44e1917.tar.gz podman-6d9217228b87e5ea5b0e215701d8e001c44e1917.tar.bz2 podman-6d9217228b87e5ea5b0e215701d8e001c44e1917.zip |
Make slirp MTU configurable (network_cmd_options)
The mtu default value is currently forced to 65520.
This let the user control it using the config key network_cmd_options,
i.e.: network_cmd_options=["mtu=9000"]
Signed-off-by: bitstrings <pino.silvaggio@gmail.com>
Diffstat (limited to 'test/e2e')
-rw-r--r-- | test/e2e/run_networking_test.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/e2e/run_networking_test.go b/test/e2e/run_networking_test.go index ebea2132a..676f24e5d 100644 --- a/test/e2e/run_networking_test.go +++ b/test/e2e/run_networking_test.go @@ -376,6 +376,13 @@ var _ = Describe("Podman run networking", func() { Expect(session.ExitCode()).To(Equal(0)) }) + It("podman run slirp4netns network with mtu", func() { + session := podmanTest.Podman([]string{"run", "--network", "slirp4netns:mtu=9000", ALPINE, "ip", "addr"}) + session.Wait(30) + Expect(session.ExitCode()).To(Equal(0)) + Expect(session.OutputToString()).To(ContainSubstring("mtu 9000")) + }) + It("podman run slirp4netns network with different cidr", func() { slirp4netnsHelp := SystemExec("slirp4netns", []string{"--help"}) Expect(slirp4netnsHelp.ExitCode()).To(Equal(0)) |