mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-10-29 17:58:36 +08:00
fix(region): filter host by ips (#23083)
This commit is contained in:
@@ -96,6 +96,8 @@ type HostListInput struct {
|
||||
AccessMac []string `json:"access_mac"`
|
||||
// 管理口Ip地址
|
||||
AccessIp []string `json:"access_ip"`
|
||||
// 公网IP地址
|
||||
PublicIp []string `json:"public_ip"`
|
||||
// 物理机序列号信息
|
||||
SN []string `json:"sn"`
|
||||
// CPU大小
|
||||
|
||||
@@ -451,6 +451,7 @@ func (manager *SHostManager) ListItemFilter(
|
||||
"sn": query.SN,
|
||||
"storage_type": query.StorageType,
|
||||
"ipmi_ip": query.IpmiIp,
|
||||
"public_ip": query.PublicIp,
|
||||
"host_status": query.HostStatus,
|
||||
"host_type": query.HostType,
|
||||
"version": query.Version,
|
||||
|
||||
@@ -74,6 +74,10 @@ type HostListOptions struct {
|
||||
|
||||
HideCpuTopoInfo *bool `help:"Host list will remove cpu_info and topology info from sysinfo and metadata"`
|
||||
|
||||
AccessIp []string `help:"Access ip address"`
|
||||
IpmiIp []string `help:"Ipmi ip address"`
|
||||
PublicIp []string `help:"Public ip address"`
|
||||
|
||||
options.BaseListOptions
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user