do not return error on invalid mac address in vsphere cloud provider

This commit is contained in:
Fabio Rapposelli 2019-02-20 14:12:05 +01:00
parent f99728e6f3
commit eb8f3240b0
No known key found for this signature in database
GPG Key ID: 69F5AA23EE3B1516

View File

@ -569,7 +569,8 @@ func getLocalIP() ([]v1.NodeAddress, error) {
vmMACAddr := strings.ToLower(i.HardwareAddr.String())
// Making sure that the MAC address is long enough
if len(vmMACAddr) < 17 {
return addrs, fmt.Errorf("MAC address %q is invalid", vmMACAddr)
klog.V(4).Infof("Skipping invalid MAC address: %q", vmMACAddr)
continue
}
if vmwareOUI[vmMACAddr[:8]] {
nodehelpers.AddToNodeAddresses(&addrs,