From dabfa8de08cf97d0276aec0522d29f8c88554f1b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B1=88=E8=BD=A9?= Date: Fri, 18 Oct 2024 09:52:34 +0800 Subject: [PATCH] fix(region): add interface field length (#21422) --- pkg/compute/models/hostwires.go | 2 +- pkg/compute/models/netinterfaces.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/compute/models/hostwires.go b/pkg/compute/models/hostwires.go index fad1c74719..809ca5f4f4 100644 --- a/pkg/compute/models/hostwires.go +++ b/pkg/compute/models/hostwires.go @@ -59,7 +59,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