We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 7d69312 + ef16ecd commit 547fa9bCopy full SHA for 547fa9b
pkg/multicloud/esxi/host.go
@@ -444,6 +444,15 @@ func (host *SHost) fetchNicInfo(debug bool) []sHostNicInfo {
444
}
445
446
for _, nic := range vnics {
447
+ if nic.Spec.IpRouteSpec == nil {
448
+ continue
449
+ }
450
+ if nic.Spec.IpRouteSpec.IpRouteConfig.GetHostIpRouteConfig() == nil {
451
452
453
+ if len(nic.Spec.IpRouteSpec.IpRouteConfig.GetHostIpRouteConfig().DefaultGateway) == 0 {
454
455
456
// log.Debugf("vnic %d: %s %#v", i, jsonutils.Marshal(nic), nic)
457
mac := netutils.FormatMacAddr(nic.Spec.Mac)
458
pnic := findHostNicByMac(nicInfoList, mac)
0 commit comments