Explorar el Código

api/t/net: add missing comment to ValidateIPAM

Signed-off-by: Albin Kerouanton <albinker@gmail.com>
Albin Kerouanton hace 1 año
padre
commit
81ab8db1c3
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. 2 0
      api/types/network/ipam.go

+ 2 - 0
api/types/network/ipam.go

@@ -51,6 +51,8 @@ func HasIPv6Subnets(ipam *IPAM) bool {
 	return false
 	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 {
 func ValidateIPAM(ipam *IPAM) error {
 	if ipam == nil {
 	if ipam == nil {
 		return nil
 		return nil