diff options
author | Antonio Ojea <aojea@redhat.com> | 2020-08-14 11:19:02 +0200 |
---|---|---|
committer | Matthew Heon <matthew.heon@pm.me> | 2020-08-20 12:16:52 -0400 |
commit | 5e50ba3ecbdd738679849d7a86fef0c4ab7f109d (patch) | |
tree | 54eddc9445475aa12d8177f2a294dca563f56164 /pkg/domain/infra/abi/network.go | |
parent | 386de7a1fbfef0c266e04f6471f9382a5d39a02f (diff) | |
download | podman-5e50ba3ecbdd738679849d7a86fef0c4ab7f109d.tar.gz podman-5e50ba3ecbdd738679849d7a86fef0c4ab7f109d.tar.bz2 podman-5e50ba3ecbdd738679849d7a86fef0c4ab7f109d.zip |
podman support for IPv6 networks
podman containers using IPv6 were missing the default route, breaking
deployments trying to use them.
The problem is that the default route was hardcoded to IPv4, this
takes into consideration the podman subnet IP family to generate
the corresponding default route.
Signed-off-by: Antonio Ojea <aojea@redhat.com>
Diffstat (limited to 'pkg/domain/infra/abi/network.go')
-rw-r--r-- | pkg/domain/infra/abi/network.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/domain/infra/abi/network.go b/pkg/domain/infra/abi/network.go index 26383129c..fd63fc80f 100644 --- a/pkg/domain/infra/abi/network.go +++ b/pkg/domain/infra/abi/network.go @@ -191,7 +191,7 @@ func createBridge(r *libpod.Runtime, name string, options entities.NetworkCreate var plugins []network.CNIPlugins var routes []network.IPAMRoute - defaultRoute, err := network.NewIPAMDefaultRoute() + defaultRoute, err := network.NewIPAMDefaultRoute(network.IsIPv6(subnet.IP)) if err != nil { return "", err } |