Versions in this module Expand all Collapse all v1 v1.0.9 Sep 3, 2020 Changes in this version + func CalculateMachineNetworkCIDR(apiVip string, ingressVip string, hosts []*models.Host) (string, error) + func GenerateAPIVipMAC(clusterID string) string + func GenerateIngressVipMAC(clusterID string) string + func GetEncodedDhcpParamFileContents(cluster *common.Cluster) (string, error) + func GetMachineCIDRHosts(log logrus.FieldLogger, cluster *common.Cluster) ([]*models.Host, error) + func GetMachineCIDRInterface(host *models.Host, cluster *common.Cluster) (string, error) + func IpInCidr(ipAddr, cidr string) (bool, error) + func IpInFreeList(hosts []*models.Host, vipIPStr, network string, log logrus.FieldLogger) bool + func IsHostInMachineNetCidr(log logrus.FieldLogger, cluster *common.Cluster, host *models.Host) bool + func VerifyCIDRsNotOverlap(aCidrStr, bCidrStr string) error + func VerifyClusterCIDRsNotOverlap(machineNetworkCidr, clusterNetworkCidr, serviceNetworkCidr string) error + func VerifyMachineCIDR(machineCidr string, hosts []*models.Host, log logrus.FieldLogger) error + func VerifyNetworkHostPrefix(prefix int64) error + func VerifySubnetCIDR(cidrStr string) error + func VerifyVip(hosts []*models.Host, machineNetworkCidr string, vip string, vipName string, ...) error + func VerifyVips(hosts []*models.Host, machineNetworkCidr string, apiVip string, ...) error + type IPSet map[strfmt.IPv4]struct + func MakeFreeAddressesSet(hosts []*models.Host, network string, prefix *string, log logrus.FieldLogger) IPSet + func (s IPSet) Add(str strfmt.IPv4) + func (s IPSet) Intersect(other IPSet) IPSet