Skip to content

Commit 9ef5d76

Browse files
skip vmware vnic ipv4 to ovoid mask to bits error (#544)
1 parent dd2406e commit 9ef5d76

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

internal/source/vmware/vmware_sync.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -729,6 +729,9 @@ func (vc *VmwareSource) syncHostVirtualNics(
729729

730730
// Get IPv4 address for this vnic
731731
ipv4Address := vnic.Spec.Ip.IpAddress
732+
if ipv4Address == "" {
733+
continue
734+
}
732735
if utils.IsPermittedIPAddress(
733736
ipv4Address,
734737
vc.SourceConfig.PermittedSubnets,

0 commit comments

Comments
 (0)