CLOUDSTACK-5592

ssh should run on eth1 interface in ssvm/cpvm running in HyperV.
This commit is contained in:
Rajesh Battala 2013-12-22 17:00:48 +05:30
parent dde7a5f43e
commit ab304d2821
2 changed files with 10 additions and 0 deletions

View File

@ -1440,6 +1440,11 @@ public class ConsoleProxyManagerImpl extends ManagerBase implements ConsoleProxy
controlNic = managementNic;
}
// verify ssh access on management nic for system vm running on HyperV
if(profile.getHypervisorType() == HypervisorType.Hyperv) {
controlNic = managementNic;
}
CheckSshCommand check = new CheckSshCommand(profile.getInstanceName(), controlNic.getIp4Address(), 3922);
cmds.addCommand("checkSsh", check);

View File

@ -1141,6 +1141,11 @@ public class SecondaryStorageManagerImpl extends ManagerBase implements Secondar
controlNic = managementNic;
}
// verify ssh access on management nic for system vm running on HyperV
if(profile.getHypervisorType() == HypervisorType.Hyperv) {
controlNic = managementNic;
}
CheckSshCommand check = new CheckSshCommand(profile.getInstanceName(), controlNic.getIp4Address(), 3922);
cmds.addCommand("checkSsh", check);