// expandIpPool expand ip pool if virtual ip is not enough
expandIpPool expand ip pool if virtual ip is not enough
// expandIpPool expand ip pool if virtual ip is not enough
func expandIpPool() {
	if ipPoolSize > 0xfffe {
		return
	}
	for idx := ipPoolSize + 1; idx <= ipPoolSize+defaultIpPoolSize; idx++ {
		ip := defaultNetworkPrefix + getSubNet(idx)
		if err := vdev.AddIP(ip); err != nil {
			vdev.DestroyDevice()
			klog.Errorf("[L4 Proxy] Add ip is failed : %s please checkout the env", err)
			return
		}
		unused = append(unused, ip)
	}
	ipPoolSize = defaultIpPoolSize
}
func expandIpPool ( ) { if ipPoolSize > 0xfffe { return } for idx := ipPoolSize + 1 ; idx <= ipPoolSize + defaultIpPoolSize ; idx ++ { ip := defaultNetworkPrefix + getSubNet ( idx ) if err := vdev . AddIP ( ip ) ; err != nil { vdev . DestroyDevice ( ) klog . Errorf ( " " , err ) return } unused = append ( unused , ip ) } ipPoolSize = defaultIpPoolSize }
expandIpPool expand ip pool if virtual ip is not enough
expandIpPool expand ip pool if virtual ip is not enough
// make sure the subnet can't be "255.255"