mirror of https://github.com/apache/cloudstack.git
CLOUDSTACK-5340 [Hyper-V] Control IPs are not getting released when VRs are in stopped state
This commit is contained in:
parent
0ef953f993
commit
7c5563adb7
|
|
@ -168,8 +168,8 @@ public class ControlNetworkGuru extends PodBasedNetworkGuru implements NetworkGu
|
|||
@Override
|
||||
public boolean release(NicProfile nic, VirtualMachineProfile vm, String reservationId) {
|
||||
assert nic.getTrafficType() == TrafficType.Control;
|
||||
|
||||
if (vm.getHypervisorType() == HypervisorType.VMware && isRouterVm(vm)) {
|
||||
HypervisorType hType = vm.getHypervisorType();
|
||||
if ( ( (hType == HypervisorType.VMware) || (hType == HypervisorType.Hyperv) )&& isRouterVm(vm)) {
|
||||
long dcId = vm.getVirtualMachine().getDataCenterId();
|
||||
DataCenterVO dcVo = _dcDao.findById(dcId);
|
||||
if(dcVo.getNetworkType() != NetworkType.Basic) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue