fix: create params with require_ipv6 (#19491)

Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
This commit is contained in:
Jian Qiu
2024-02-18 10:35:06 +08:00
committed by GitHub
parent 3ea6d5018b
commit e2963f9d34
+3
View File
@@ -6344,6 +6344,9 @@ func (self *SGuest) ToNetworksConfig() []*api.NetworkConfig {
netConf.Wire = network.WireId
netConf.Network = network.Id
netConf.Exit = guestNetwork.IsExit()
if len(guestNetwork.Ip6Addr) > 0 {
netConf.RequireIPv6 = true
}
// netConf.Private
// netConf.Reserved
netConf.Driver = guestNetwork.Driver