We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a33589d commit 3c3ce56Copy full SHA for 3c3ce56
internal/source/vmware/vmware_sync.go
@@ -28,7 +28,7 @@ func (vc *VmwareSource) syncNetworks(nbi *inventory.NetboxInventory) error {
28
if err != nil {
29
return fmt.Errorf("vlanTenant: %s", err)
30
}
31
- if len(dvpg.VlanIDs) == 1 && len(dvpg.VlanIDRanges) == 0 {
+ if len(dvpg.VlanIDs) == 1 && len(dvpg.VlanIDRanges) == 0 && dvpg.VlanIDs[0] != 0 {
32
_, err := nbi.AddVlan(vc.Ctx, &objects.Vlan{
33
NetboxObject: objects.NetboxObject{
34
Tags: vc.Config.SourceTags,
0 commit comments