mirror of https://github.com/apache/cloudstack.git
CLOUDSTACK-6832: [OVS]vnet is not released even the network is deleted
fix ensures allocated VNET is released during network shutdown
(cherry picked from commit be937a0821)
This commit is contained in:
parent
a951b51523
commit
a4512c0f0c
|
|
@ -189,7 +189,12 @@ public class OvsGuestNetworkGuru extends GuestNetworkGuru {
|
|||
return;
|
||||
}
|
||||
|
||||
super.shutdown(profile, offering);
|
||||
if (profile.getBroadcastDomainType() == BroadcastDomainType.Vswitch ) {
|
||||
s_logger.debug("Releasing vnet for the network id=" + profile.getId());
|
||||
_dcDao.releaseVnet(BroadcastDomainType.getValue(profile.getBroadcastUri()), profile.getDataCenterId(), profile.getPhysicalNetworkId(),
|
||||
profile.getAccountId(), profile.getReservationId());
|
||||
}
|
||||
profile.setBroadcastUri(null);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
|||
Loading…
Reference in New Issue