fix(region): filter host by ips (#23083)

This commit is contained in:
Zexi Li
2025-08-14 18:35:28 +08:00
committed by GitHub
parent d48bab9ddd
commit 69056db01a
3 changed files with 7 additions and 0 deletions
+2
View File
@@ -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大小
+1
View File
@@ -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,
+4
View File
@@ -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
}