mirror of https://github.com/apache/cloudstack.git
Removed unused comments
This commit is contained in:
parent
e65465929d
commit
434f166c02
|
|
@ -139,6 +139,7 @@ import com.cloud.storage.swift.SwiftManager;
|
|||
import com.cloud.test.IPRangeConfig;
|
||||
import com.cloud.user.Account;
|
||||
import com.cloud.user.AccountManager;
|
||||
import com.cloud.user.AccountVO;
|
||||
import com.cloud.user.ResourceLimitService;
|
||||
import com.cloud.user.User;
|
||||
import com.cloud.user.UserContext;
|
||||
|
|
@ -2178,23 +2179,12 @@ public class ConfigurationManagerImpl implements ConfigurationManager, Configura
|
|||
|
||||
if (forVirtualNetwork) {
|
||||
if (vlanOwner != null) {
|
||||
// verify resource limits
|
||||
//long ipResourceLimit = _resourceLimitMgr.findCorrectResourceLimitForAccount(vlanOwner, ResourceType.public_ip);
|
||||
|
||||
|
||||
long accountIpRange = NetUtils.ip2Long(endIP) - NetUtils.ip2Long(startIP) + 1;
|
||||
|
||||
//check resource limits
|
||||
_resourceLimitMgr.checkResourceLimit(vlanOwner, ResourceType.public_ip, accountIpRange);
|
||||
|
||||
// if (s_logger.isDebugEnabled()) {
|
||||
// s_logger.debug(" IPResourceLimit " + ipResourceLimit + " accountIpRange " + accountIpRange);
|
||||
// }
|
||||
// if (ipResourceLimit != -1 && accountIpRange > ipResourceLimit) { // -1
|
||||
// // means
|
||||
// // infinite
|
||||
// throw new InvalidParameterValueException(" Public IP Resource Limit is set to " + ipResourceLimit +
|
||||
// " which is less than the IP range of " + accountIpRange + " provided");
|
||||
// }
|
||||
associateIpRangeToAccount = true;
|
||||
}
|
||||
}
|
||||
|
|
@ -2204,7 +2194,8 @@ public class ConfigurationManagerImpl implements ConfigurationManager, Configura
|
|||
Transaction txn = Transaction.currentTxn();
|
||||
txn.start();
|
||||
|
||||
Vlan vlan = createVlanAndPublicIpRange(zoneId, networkId, physicalNetworkId, forVirtualNetwork, podId, startIP, endIP, vlanGateway, vlanNetmask, vlanId, vlanOwner);
|
||||
Vlan vlan = createVlanAndPublicIpRange(zoneId, networkId, physicalNetworkId, forVirtualNetwork, podId, startIP,
|
||||
endIP, vlanGateway, vlanNetmask, vlanId, vlanOwner);
|
||||
|
||||
if (associateIpRangeToAccount) {
|
||||
_networkMgr.associateIpAddressListToAccount(userId, vlanOwner.getId(), zoneId, vlan.getId(), null);
|
||||
|
|
|
|||
Loading…
Reference in New Issue