mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
feature: host add property server_ips that carries the ip list of
baremetal server
This commit is contained in:
@@ -2180,6 +2180,9 @@ func (self *SHost) getMoreDetails(ctx context.Context, extra *jsonutils.JSONDict
|
||||
if server != nil {
|
||||
extra.Add(jsonutils.NewString(server.Id), "server_id")
|
||||
extra.Add(jsonutils.NewString(server.Name), "server")
|
||||
if self.HostType == HOST_TYPE_BAREMETAL {
|
||||
extra.Add(jsonutils.NewString(strings.Join(server.getRealIPs(), ",")), "server_ips")
|
||||
}
|
||||
}
|
||||
netifs := self.GetNetInterfaces()
|
||||
if netifs != nil && len(netifs) > 0 {
|
||||
|
||||
Reference in New Issue
Block a user