bug 8320: Include router private Ip in stop command

status 8320: resolved fixed
This commit is contained in:
kishan 2011-02-03 11:36:55 +05:30
parent b226861783
commit 5007f37479

View File

@ -823,8 +823,11 @@ public class VirtualMachineManagerImpl implements VirtualMachineManager, StateLi
VirtualMachineProfile<T> profile = new VirtualMachineProfileImpl<T>(vm); VirtualMachineProfile<T> profile = new VirtualMachineProfileImpl<T>(vm);
if (vm.getHostId() != null) { if (vm.getHostId() != null) {
StopCommand stop = new StopCommand(vm, vm.getInstanceName(), null); String routerPrivateIp = null;
if(vm.getType() == VirtualMachine.Type.DomainRouter){
routerPrivateIp = vm.getPrivateIpAddress();
}
StopCommand stop = new StopCommand(vm, vm.getInstanceName(), null, routerPrivateIp);
boolean stopped = false; boolean stopped = false;
StopAnswer answer = null; StopAnswer answer = null;
try { try {