mirror of https://github.com/apache/cloudstack.git
bug 10080: update nic profile with DNS info for the nics with reservation_strategy=Create
status 10080: resolved fixed
This commit is contained in:
parent
f7414b83aa
commit
df403c953d
|
|
@ -1247,6 +1247,7 @@ public class NetworkManagerImpl implements NetworkManager, NetworkService, Manag
|
|||
updateNic(nic, network.getId(), 1);
|
||||
} else {
|
||||
profile = new NicProfile(nic, network, nic.getBroadcastUri(), nic.getIsolationUri(), networkRate);
|
||||
guru.updateNicProfile(profile, network);
|
||||
nic.setState(Nic.State.Reserved);
|
||||
updateNic(nic, network.getId(), 1);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -117,6 +117,10 @@ public class DirectPodBasedNetworkGuru extends DirectNetworkGuru {
|
|||
getIp(nic, dest.getPod(), vm, network);
|
||||
nic.setStrategy(ReservationStrategy.Create);
|
||||
}
|
||||
|
||||
DataCenter dc = _dcDao.findById(network.getDataCenterId());
|
||||
nic.setDns1(dc.getDns1());
|
||||
nic.setDns2(dc.getDns2());
|
||||
}
|
||||
|
||||
protected void getIp(NicProfile nic, Pod pod, VirtualMachineProfile<? extends VirtualMachine> vm, Network network) throws InsufficientVirtualNetworkCapcityException,
|
||||
|
|
|
|||
Loading…
Reference in New Issue