Merge pull request #29418 from aboch/p66
[1.13.x] Fix buildIpamResources() (cherry picked from commit 4d2be03b68dd54d8f2307e8b4178ad8ed8d5d343) Signed-off-by: Sebastiaan van Stijn <github@gone.nl> Upstream-commit: 27498a3c60018ea2880a18beec65710fd27971a7 Component: engine
This commit is contained in:
committed by
Sebastiaan van Stijn
parent
ab0ee856b7
commit
758ca586cf
@ -410,6 +410,9 @@ func buildIpamResources(r *types.NetworkResource, nwInfo libnetwork.NetworkInfo)
|
||||
|
||||
if !hasIpv6Conf {
|
||||
for _, ip6Info := range ipv6Info {
|
||||
if ip6Info.IPAMData.Pool == nil {
|
||||
continue
|
||||
}
|
||||
iData := network.IPAMConfig{}
|
||||
iData.Subnet = ip6Info.IPAMData.Pool.String()
|
||||
iData.Gateway = ip6Info.IPAMData.Gateway.String()
|
||||
|
||||
Reference in New Issue
Block a user