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