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:
Deepti Dohare 2012-07-06 16:46:32 +05:30
commit 9ad450e0f7
1 changed files with 2 additions and 1 deletions

View File

@ -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));