mirror of
https://github.com/containers/podman.git
synced 2025-09-27 08:43:52 +08:00
Bump c/common to v0.47.4
As the title says. Signed-off-by: tomsweeneyredhat <tsweeney@redhat.com>
This commit is contained in:
6
vendor/github.com/containers/common/libnetwork/internal/util/validate.go
generated
vendored
6
vendor/github.com/containers/common/libnetwork/internal/util/validate.go
generated
vendored
@ -65,11 +65,11 @@ func ValidateSubnet(s *types.Subnet, addGateway bool, usedNetworks []*net.IPNet)
|
||||
}
|
||||
|
||||
// ValidateSubnets will validate the subnets for this network.
|
||||
// It also sets the gateway if the gateway is empty and it sets
|
||||
// It also sets the gateway if the gateway is empty and addGateway is set to true
|
||||
// IPv6Enabled to true if at least one subnet is ipv6.
|
||||
func ValidateSubnets(network *types.Network, usedNetworks []*net.IPNet) error {
|
||||
func ValidateSubnets(network *types.Network, addGateway bool, usedNetworks []*net.IPNet) error {
|
||||
for i := range network.Subnets {
|
||||
err := ValidateSubnet(&network.Subnets[i], !network.Internal, usedNetworks)
|
||||
err := ValidateSubnet(&network.Subnets[i], addGateway, usedNetworks)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
Reference in New Issue
Block a user