mirror of
https://github.com/apache/cloudstack
synced 2026-08-13 00:49:28 +00:00
Acquire management/pod ip for control ip when VR deploys in HyperV
This commit is contained in:
parent
c2ddf836bf
commit
0d424d152e
@ -133,7 +133,9 @@ public class ControlNetworkGuru extends PodBasedNetworkGuru implements NetworkGu
|
||||
InsufficientAddressCapacityException {
|
||||
assert nic.getTrafficType() == TrafficType.Control;
|
||||
|
||||
if (dest.getHost().getHypervisorType() == HypervisorType.VMware && isRouterVm(vm)) {
|
||||
// we have to get management/private ip for the control nic for vmware/hyperv due ssh issues.
|
||||
HypervisorType hType = dest.getHost().getHypervisorType();
|
||||
if ( ( (hType == HypervisorType.VMware) || (hType == HypervisorType.Hyperv) )&& isRouterVm(vm)) {
|
||||
if(dest.getDataCenter().getNetworkType() != NetworkType.Basic) {
|
||||
super.reserve(nic, config, vm, dest, context);
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user