mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-21 06:09:39 +08:00
fix(region): host schedtags with topology
This commit is contained in:
@@ -144,6 +144,7 @@ type HostTopologyOutput struct {
|
||||
HostStatus string `json:"host_status"`
|
||||
HostType string `json:"host_type"`
|
||||
Networks []HostnetworkTopologyOutput `json:"networks"`
|
||||
Schedtags []SchedtagShortDescDetails `json:"schedtags"`
|
||||
}
|
||||
|
||||
type WireTopologyOutput struct {
|
||||
|
||||
@@ -1757,6 +1757,7 @@ func (self *SVpc) GetDetailsTopology(ctx context.Context, userCred mcclient.Toke
|
||||
HostStatus: hosts[i].HostStatus,
|
||||
HostType: hosts[i].HostType,
|
||||
Networks: []api.HostnetworkTopologyOutput{},
|
||||
Schedtags: GetSchedtagsDetailsToResourceV2(&hosts[i], ctx),
|
||||
}
|
||||
for j := range hns {
|
||||
host.Networks = append(host.Networks, api.HostnetworkTopologyOutput{
|
||||
|
||||
@@ -1561,6 +1561,7 @@ func (self *SWire) GetDetailsTopology(ctx context.Context, userCred mcclient.Tok
|
||||
HostStatus: hosts[i].HostStatus,
|
||||
HostType: hosts[i].HostType,
|
||||
Networks: []api.HostnetworkTopologyOutput{},
|
||||
Schedtags: GetSchedtagsDetailsToResourceV2(&hosts[i], ctx),
|
||||
}
|
||||
for j := range hns {
|
||||
host.Networks = append(host.Networks, api.HostnetworkTopologyOutput{
|
||||
|
||||
Reference in New Issue
Block a user