diff options
author | bitstrings <pino.silvaggio@gmail.com> | 2021-01-29 23:37:14 -0500 |
---|---|---|
committer | p <pino.silvaggio@gmail.com> | 2021-02-02 13:50:26 -0500 |
commit | 0959196807bb85b1941343a6b984bfd7a08cfd06 (patch) | |
tree | daafd3838e757504e595c16a06ee427ff2f1e364 /test/e2e/run_networking_test.go | |
parent | 2686e406a650f8ceac4b3763e0cfba16090d1c1b (diff) | |
download | podman-0959196807bb85b1941343a6b984bfd7a08cfd06.tar.gz podman-0959196807bb85b1941343a6b984bfd7a08cfd06.tar.bz2 podman-0959196807bb85b1941343a6b984bfd7a08cfd06.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/run_networking_test.go')
-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)) |