From 8e1c23ec2ed9dd2d4b9c96281140b1e85bc72c5f Mon Sep 17 00:00:00 2001 From: Jian Qiu Date: Mon, 2 Feb 2026 20:16:29 +0800 Subject: [PATCH] fix: allow guestnetwork ip4 addr field nullable (#24191) Co-authored-by: Qiu Jian --- pkg/compute/models/guestnetworks.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/compute/models/guestnetworks.go b/pkg/compute/models/guestnetworks.go index 319d7b8457..2bd290f0b5 100644 --- a/pkg/compute/models/guestnetworks.go +++ b/pkg/compute/models/guestnetworks.go @@ -85,7 +85,7 @@ type SGuestnetwork struct { // MAC地址 MacAddr string `width:"32" charset:"ascii" nullable:"false" list:"user" index:"true"` // IPv4地址 - IpAddr string `width:"16" charset:"ascii" nullable:"false" list:"user"` + IpAddr string `width:"16" charset:"ascii" nullable:"true" list:"user"` // IPv6地址 Ip6Addr string `width:"64" charset:"ascii" nullable:"true" list:"user"` // 虚拟网卡驱动