diff --git a/pkg/compute/models/hosts.go b/pkg/compute/models/hosts.go index 4d772637eb..535bd37d39 100644 --- a/pkg/compute/models/hosts.go +++ b/pkg/compute/models/hosts.go @@ -4918,6 +4918,7 @@ func (host *SHost) SyncEsxiHostWires(ctx context.Context, userCred mcclient.Toke HostId: host.GetId(), WireId: vsWire.WireId, } + hostwire.SetModelManager(HostwireManager, hostwire) hostwire.MacAddr = vsWire.Mac err := HostwireManager.TableSpec().Insert(ctx, hostwire) if err != nil {