mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
feat(region): add host count when list wires
This commit is contained in:
@@ -44,7 +44,9 @@ type WireDetails struct {
|
||||
// IP子网数量
|
||||
// example: 1
|
||||
Networks int `json:"networks"`
|
||||
// VPC名称
|
||||
// Host数量
|
||||
// example: 1
|
||||
HostCount int `json:"host_count"`
|
||||
}
|
||||
|
||||
type WireResourceInfoBase struct {
|
||||
|
||||
@@ -1283,6 +1283,7 @@ func (manager *SWireManager) FetchCustomizeColumns(
|
||||
}
|
||||
wire := objs[i].(*SWire)
|
||||
rows[i].Networks, _ = wire.NetworkCount()
|
||||
rows[i].HostCount, _ = wire.HostCount()
|
||||
}
|
||||
|
||||
return rows
|
||||
|
||||
Reference in New Issue
Block a user