mirror of https://github.com/apache/cloudstack.git
bug 3120: now we provide a 1:1 nat functionality. we acquire a public ip from the ui, and if the 1:1 nat option is chosen, provide a valid vm instance id with it. the backend logic maps this id to a guest ip, and programs the ip table rules to forward all traffic from the public ip acquired, to this guest. for tests, try ssh'ing to that host, using something like ssh root@192.168.30.43 (for this public ip acquired), and you should be able to log into the guest vm
status 3120: resolved fixed
This commit is contained in:
parent
3f9b58bc73
commit
2727dc53eb
|
|
@ -1569,6 +1569,14 @@ public class ManagementServerImpl implements ManagementServer {
|
|||
_accountMgr.incrementResourceCount(accountId, ResourceType.public_ip);
|
||||
}
|
||||
|
||||
if(vmId!=0){
|
||||
VMInstanceVO vm = _vmInstanceDao.findById(vmId);
|
||||
|
||||
if(vm == null){
|
||||
throw new InvalidParameterValueException("Invalid vm instance id:"+vmId+" specified");
|
||||
}
|
||||
}
|
||||
|
||||
boolean success = true;
|
||||
String errorMsg = "";
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue