fix: allow guestnetwork ip4 addr field nullable (#24191)

Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
This commit is contained in:
Jian Qiu
2026-02-02 20:16:29 +08:00
committed by GitHub
co-authored by Qiu Jian
parent 6b68d880c7
commit 8e1c23ec2e
+1 -1
View File
@@ -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"`
// 虚拟网卡驱动