mirror of
https://github.com/containers/podman.git
synced 2025-10-25 18:25:59 +08:00
Merge pull request #9174 from bitstrings/master
Make slirp MTU configurable (network_cmd_options)
This commit is contained in:
@ -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))
|
||||
|
||||
Reference in New Issue
Block a user