mirror of https://github.com/apache/cloudstack.git
Check for null vnet when allocation fails
This commit is contained in:
parent
b3cf83c94e
commit
ef41ebc9ec
|
|
@ -880,7 +880,9 @@ public class NetworkManagerImpl implements NetworkManager, VirtualMachineManager
|
|||
vnet = _dcDao.allocateVnet(router.getDataCenterId(), router.getAccountId());
|
||||
}
|
||||
vnetAllocated = true;
|
||||
routerMacAddress = getRouterMacForVnet(dc, vnet);
|
||||
if(vnet != null){
|
||||
routerMacAddress = getRouterMacForVnet(dc, vnet);
|
||||
}
|
||||
} else if (router.getRole() == Role.DHCP_USERDATA) {
|
||||
if (!Vlan.UNTAGGED.equals(router.getVlanId())) {
|
||||
vnet = router.getVlanId().trim();
|
||||
|
|
|
|||
Loading…
Reference in New Issue