From a6d277005509fb386433e6525c3c3955a3eacca4 Mon Sep 17 00:00:00 2001 From: Qiu Jian Date: Mon, 20 Dec 2021 01:49:56 +0800 Subject: [PATCH] fix: show host ovn_mapped_ip_addr --- pkg/compute/models/hosts.go | 4 ++-- pkg/mcclient/modules/compute/mod_hosts.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/compute/models/hosts.go b/pkg/compute/models/hosts.go index 3574c59dbf..832ea66f29 100644 --- a/pkg/compute/models/hosts.go +++ b/pkg/compute/models/hosts.go @@ -185,10 +185,10 @@ type SHost struct { // 主机UUID Uuid string `width:"64" nullable:"true" list:"domain" update:"domain" create:"domain_optional"` - // 主机启动模式, 可能值位PXE和ISO + // 主机启动模式, 可能值为PXE和ISO BootMode string `width:"8" nullable:"true" list:"domain" update:"domain" create:"domain_optional"` - // IPv4地址,作为么有云vpc访问外网时的网关 + // IPv4地址,作为私有云vpc访问外网时的网关 OvnMappedIpAddr string `width:"16" charset:"ascii" nullable:"true" list:"user"` // UEFI详情 diff --git a/pkg/mcclient/modules/compute/mod_hosts.go b/pkg/mcclient/modules/compute/mod_hosts.go index 258f7a579b..2141803398 100644 --- a/pkg/mcclient/modules/compute/mod_hosts.go +++ b/pkg/mcclient/modules/compute/mod_hosts.go @@ -166,7 +166,7 @@ var ( func init() { Hosts = HostManager{modules.NewComputeManager("host", "hosts", - []string{"ID", "Name", "Access_mac", "Access_ip", "Ipmi_Ip", + []string{"ID", "Name", "Access_mac", "Access_ip", "Ipmi_Ip", "Ovn_Mapped_Ip_Addr", "Manager_URI", "Status", "enabled", "host_status", "Guests", "Running_guests",