diff --git a/pkg/compute/models/hostwires.go b/pkg/compute/models/hostwires.go index e05a974025..da1fbfe9a5 100644 --- a/pkg/compute/models/hostwires.go +++ b/pkg/compute/models/hostwires.go @@ -57,7 +57,7 @@ type SHostwireDeprecated struct { Bridge string `width:"64" charset:"ascii" nullable:"false" list:"domain" update:"domain" create:"domain_required"` // 接口名称 - Interface string `width:"16" charset:"ascii" nullable:"false" list:"domain" update:"domain" create:"domain_required"` + Interface string `width:"64" charset:"ascii" nullable:"false" list:"domain" update:"domain" create:"domain_required"` // 是否是主地址 IsMaster bool `nullable:"true" default:"false" list:"domain" update:"domain" create:"domain_optional"` // MAC地址 diff --git a/pkg/compute/models/netinterfaces.go b/pkg/compute/models/netinterfaces.go index fe8491018c..84b8dc9b1c 100644 --- a/pkg/compute/models/netinterfaces.go +++ b/pkg/compute/models/netinterfaces.go @@ -56,7 +56,7 @@ type SNetInterface struct { // Bridge名称 Bridge string `width:"64" charset:"ascii" nullable:"true"` // 接口名称 - Interface string `width:"16" charset:"ascii" nullable:"true"` + Interface string `width:"64" charset:"ascii" nullable:"true"` } // +onecloud:swagger-gen-ignore