mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-28 05:57:25 +00:00
do not return error on invalid mac address in vsphere cloud provider
This commit is contained in:
parent
f99728e6f3
commit
eb8f3240b0
@ -569,7 +569,8 @@ func getLocalIP() ([]v1.NodeAddress, error) {
|
|||||||
vmMACAddr := strings.ToLower(i.HardwareAddr.String())
|
vmMACAddr := strings.ToLower(i.HardwareAddr.String())
|
||||||
// Making sure that the MAC address is long enough
|
// Making sure that the MAC address is long enough
|
||||||
if len(vmMACAddr) < 17 {
|
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]] {
|
if vmwareOUI[vmMACAddr[:8]] {
|
||||||
nodehelpers.AddToNodeAddresses(&addrs,
|
nodehelpers.AddToNodeAddresses(&addrs,
|
||||||
|
Loading…
Reference in New Issue
Block a user