mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-02 20:02:29 +01:00
CLOUDSTACK-2083 router never comes to running state when addNicToVirtualMachine api is called with network id which is only allocated
This commit is contained in:
parent
f8d4a23343
commit
4fd921269b
@ -3636,8 +3636,8 @@ public class NetworkManagerImpl extends ManagerBase implements NetworkManager, L
|
||||
|
||||
//2) prepare nic
|
||||
if (prepare) {
|
||||
NetworkVO networkVO = _networksDao.findById(network.getId());
|
||||
nic = prepareNic(vmProfile, dest, context, nic.getId(), networkVO);
|
||||
Pair<NetworkGuru, NetworkVO> implemented = implementNetwork(nic.getNetworkId(), dest, context);
|
||||
nic = prepareNic(vmProfile, dest, context, nic.getId(), implemented.second());
|
||||
s_logger.debug("Nic is prepared successfully for vm " + vm + " in network " + network);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user