Skip to content

Commit

Permalink
fix: don't prefix VMware vlans to be iso with netbox-sync (#494)
Browse files Browse the repository at this point in the history
  • Loading branch information
n-rodriguez authored Feb 21, 2025
1 parent a919d20 commit 2eb4f7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/source/vmware/vmware_sync.go
Original file line number Diff line number Diff line change
Expand Up @@ -579,7 +579,7 @@ func (vc *VmwareSource) collectHostPhysicalNicData(
vlanIDMap[portgroupData.vlanID] = vlan
}
} else {
vlanName := fmt.Sprintf("VLAN%04d_%s", portgroupData.vlanID, portgroupName)
vlanName := portgroupName
vlanSite, err := common.MatchVlanToSite(vc.Ctx, nbi, vlanName, vc.SourceConfig.VlanSiteRelations)
if err != nil {
return nil, "", fmt.Errorf("match vlan to site: %s", err)
Expand Down

0 comments on commit 2eb4f7a

Please sign in to comment.