mirror of https://github.com/apache/cloudstack.git
Merge branch '3.0.3' of ssh://git.cloud.com/var/lib/git/cloudstack-oss into 3.0.3
reviewed-by: deepti
This commit is contained in:
commit
9ad450e0f7
|
|
@ -2346,11 +2346,12 @@ public class UserVmManagerImpl implements UserVmManager, UserVmService, Manager
|
|||
|
||||
if (defaultNetworkNumber == 0) {
|
||||
defaultNetworkNumber++;
|
||||
profile.setDefaultNic(true);
|
||||
// if user requested specific ip for default network, add it
|
||||
if (defaultNetworkIp != null) {
|
||||
profile = new NicProfile(defaultNetworkIp);
|
||||
}
|
||||
|
||||
profile.setDefaultNic(true);
|
||||
}
|
||||
|
||||
networks.add(new Pair<NetworkVO, NicProfile>(network, profile));
|
||||
|
|
|
|||
Loading…
Reference in New Issue