mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
bug 7689: whilst editing pod, we were not calculating the netmask if the netmask is not passed down from the UI. Re-calculating the netmask, based on pod attribs in db
status 7689: resolved fixed
This commit is contained in:
parent
cd73ff54a5
commit
1e17559d53
@ -553,6 +553,10 @@ public class ConfigurationManagerImpl implements ConfigurationManager, Configura
|
||||
gateway = pod.getGateway();
|
||||
}
|
||||
|
||||
if (netmask == null) {
|
||||
netmask = NetUtils.getCidrNetmask(pod.getCidrSize());
|
||||
}
|
||||
|
||||
if (netmask != null) {
|
||||
cidr = NetUtils.ipAndNetMaskToCidr(gateway, netmask);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user