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
1fb75c57e7
commit
cf6406695b
|
|
@ -1232,6 +1232,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);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -106,6 +106,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