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:
abhishek 2010-12-28 10:31:07 -08:00
parent cd73ff54a5
commit 1e17559d53

View File

@ -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);
}