/// <summary> /// The make detail. /// </summary> /// <param name="detail">The detail.</param> /// <param name="eSightIp">The e sight ip.</param> public void MakeDetail(HWDeviceDetail detail, string eSightIp) { var hmm = new HWHMM { DN = detail.DN, IpAddress = detail.IpAddress, Name = detail.Name, Type = detail.Type, UUID = detail.UUID, OriStatus = detail.Status, SmmMacAddr = detail.SmmMacAddr, RealTimePower = detail.RealTimePower, ProductSN = detail.ProductSN }; this.DN = detail.DN; this.ServerName = $"{eSightIp}-{detail.Name}"; this.ESight = eSightIp; this.DeviceId = $"{eSightIp}-{ detail.DN}"; this.HmmInfo = hmm; this.FanList = detail.FANList; this.SwitchList = detail.BoardList.Where(x => x.BoardType == 1) .Select(x => new ChildSwithBoard(x, eSightIp)).ToList(); this.PowerSupplyList = detail.PSUList; }
/// <summary> /// The make detail. /// </summary> /// <param name="detail"> /// The detail. /// </param> public void MakeDetail(HWDeviceDetail detail) { var hmm = new HWHMM { DN = detail.DN, IpAddress = detail.IpAddress, Name = detail.Name, Type = detail.Type, UUID = detail.UUID, Status = detail.Status, SmmMacAddr = detail.SmmMacAddr, RealTimePower = detail.RealTimePower, ProductSN = detail.ProductSN }; this.HmmInfo = hmm; this.FanList = detail.FANList; this.PowerSupplyList = detail.PSUList; }
/// <summary> /// The make detail. /// </summary> /// <param name="detail">The detail.</param> /// <param name="eSightIp">The e sight ip.</param> public void MakeDetail(HWDeviceDetail detail, string eSightIp) { //高密服务器根据管理板Dn查询详情返回的是第一个子刀片的dn因此不等于deatial的dn var hmm = new HWHMM { DN = this.DN, IpAddress = detail.IpAddress, Name = detail.Name, Type = detail.Type, UUID = detail.UUID, Status = detail.Status, SmmMacAddr = detail.SmmMacAddr, RealTimePower = detail.RealTimePower, ProductSN = detail.ProductSN }; this.ESight = eSightIp; //this.DN = detail.DN; this.DeviceId = $"{eSightIp}-{ this.DN}"; this.HmmInfo = hmm; this.FanList = detail.FANList; this.PowerSupplyList = detail.PSUList; }