code: func (c *IpamConf) Validate() error {
  	if c.Gateway != "" && nil == net.ParseIP(c.Gateway) {
  		return types.BadRequestErrorf("invalid gateway address %s in Ipam configuration", c.Gateway)
  	}
  	return nil
  }
docs: // Validate checks whether the configuration is valid