From 81ab8db1c38ee3dd1cd28a1ce16d990e7bfcdfa3 Mon Sep 17 00:00:00 2001 From: Albin Kerouanton Date: Fri, 15 Sep 2023 11:15:23 +0200 Subject: [PATCH] api/t/net: add missing comment to ValidateIPAM Signed-off-by: Albin Kerouanton --- api/types/network/ipam.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/api/types/network/ipam.go b/api/types/network/ipam.go index a8e7280e5c..17f370ef7e 100644 --- a/api/types/network/ipam.go +++ b/api/types/network/ipam.go @@ -51,6 +51,8 @@ func HasIPv6Subnets(ipam *IPAM) bool { return false } +// ValidateIPAM checks whether the network's IPAM passed as argument is valid. It returns a joinError of the list of +// errors found. func ValidateIPAM(ipam *IPAM) error { if ipam == nil { return nil