mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
fix(region): fail to update network gateway
This commit is contained in:
@@ -1635,6 +1635,10 @@ func (self *SNetwork) validateUpdateData(ctx context.Context, userCred mcclient.
|
||||
if endIp.NetAddr(masklen) != netAddr {
|
||||
return input, httperrors.NewInputParameterError("start, end ip must be in the same subnet")
|
||||
}
|
||||
} else {
|
||||
startIp, _ = netutils.NewIPV4Addr(self.GuestIpStart)
|
||||
endIp, _ = netutils.NewIPV4Addr(self.GuestIpEnd)
|
||||
netAddr = startIp.NetAddr(masklen)
|
||||
}
|
||||
|
||||
for key, ipStr := range map[string]string{
|
||||
|
||||
Reference in New Issue
Block a user