mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
bug 8320: Include router private Ip in stop command
status 8320: resolved fixed
This commit is contained in:
parent
b226861783
commit
5007f37479
@ -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 {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user