diff --git a/pkg/compute/models/hosts.go b/pkg/compute/models/hosts.go index d4177fa352..1205915489 100644 --- a/pkg/compute/models/hosts.go +++ b/pkg/compute/models/hosts.go @@ -108,7 +108,7 @@ type SHost struct { Slots string `width:"16" charset:"ascii" nullable:"true" get:"domain" update:"domain" create:"domain_optional"` // 管理口MAC - AccessMac string `width:"32" charset:"ascii" nullable:"false" index:"true" list:"domain" update:"domain"` + AccessMac string `width:"32" charset:"ascii" nullable:"true" index:"true" list:"domain" update:"domain"` // 管理口Ip地址 AccessIp string `width:"16" charset:"ascii" nullable:"true" list:"domain" update:"domain"`