Documentation ¶
Index ¶
- func CalculateMachineNetworkCIDR(apiVip string, ingressVip string, hosts []*models.Host) (string, error)
- func GetMachineCIDRHosts(log logrus.FieldLogger, cluster *common.Cluster) ([]*models.Host, 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 VerifyVips(hosts []*models.Host, machineNetworkCidr string, apiVip string, ...) error
- type IPSet
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CalculateMachineNetworkCIDR ¶
func CalculateMachineNetworkCIDR(apiVip string, ingressVip string, hosts []*models.Host) (string, error)
* Calculate the machine network CIDR from the one of (ApiVip, IngressVip) and the ip addresses of the hosts. * The ip addresses of the host appear with CIDR notation. Therefore, the network can be calculated from it. * The goal of this function is to find the first network that one of the vips belongs to it. * This network is returned as a result.
func GetMachineCIDRHosts ¶
func IpInFreeList ¶
This is best effort validation. Therefore, validation will be done only if there are IPs in free list
func IsHostInMachineNetCidr ¶
Types ¶
type IPSet ¶
func MakeFreeAddressesSet ¶
Click to show internal directories.
Click to hide internal directories.