Skip to content

Commit

Permalink
test: fix default ipv6 subnet
Browse files Browse the repository at this point in the history
[ upstream commit e5e72ab ]

Newer docker seems to refuse the default subnet we are using:

    level=warning msg="Unable to create docker network cilium-net:
    Error response from daemon: invalid network config:
    invalid subnet ::1/112: it should be ::/112\"

Let's go with the machine's suggestion.

Signed-off-by: Lorenz Bauer <lmb@isovalent.com>
  • Loading branch information
lmb committed Feb 14, 2024
1 parent de93397 commit dd73305
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/helpers/docker.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ func (s *SSHMeta) NetworkCreateWithOptions(name string, subnet string, ipv6 bool
// specified subnet. It is a wrapper around `docker network create`.
func (s *SSHMeta) NetworkCreate(name string, subnet string) *CmdRes {
if subnet == "" {
subnet = "::1/112"
subnet = "::/112"
}
return s.NetworkCreateWithOptions(name, subnet, true,
"--driver cilium --ipam-driver cilium")
Expand Down

0 comments on commit dd73305

Please sign in to comment.