rajujith commented on code in PR #7857:
URL: https://github.com/apache/cloudstack/pull/7857#discussion_r2333395435
##########
server/src/main/java/com/cloud/vm/UserVmManagerImpl.java:
##########
@@ -1845,19 +1845,19 @@ public UserVm
updateNicIpForVirtualMachine(UpdateVmNicIpCmd cmd) {
Account ipOwner =
_accountDao.findByIdIncludingRemoved(vm.getAccountId());
// verify ip address
- logger.debug("Calling the ip allocation ...");
+ logger.debug("Calling the IP allocation ...");
DataCenter dc = _dcDao.findById(network.getDataCenterId());
if (dc == null) {
- throw new InvalidParameterValueException("There is no dc with the
nic");
+ throw new InvalidParameterValueException("There is no dc with the
NIC");
}
if (dc.getNetworkType() == NetworkType.Advanced &&
network.getGuestType() == Network.GuestType.Isolated) {
try {
ipaddr = _ipAddrMgr.allocateGuestIP(network, ipaddr);
} catch (InsufficientAddressCapacityException e) {
- throw new
InvalidParameterValueException(String.format("Allocating ip to guest nic %s
failed, for insufficient address capacity", nicVO));
+ throw new
InvalidParameterValueException(String.format("Allocating IP to guest NIC %s
failed, for insufficient address capacity", nicVO));
}
if (ipaddr == null) {
- throw new
InvalidParameterValueException(String.format("Allocating ip to guest nic %s
failed, please choose another ip", nicVO));
+ throw new
InvalidParameterValueException(String.format("Allocating IP to guest NIC %s
failed, please choose another ip", nicVO));
Review Comment:
'IP'
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]