CLOUDSTACK-1670: Fix the order of user vm's multiple nics

They should follow the order of networkIds parameter of deployVMCmd(). And eth0
would be always on default network.
This commit is contained in:
Sheng Yang 2013-07-16 16:06:01 -07:00
parent ee664a1cac
commit 43ebb1c822
1 changed files with 2 additions and 1 deletions

View File

@ -20,6 +20,7 @@ import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
import java.util.HashSet;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import java.util.Set;
@ -2563,7 +2564,7 @@ public class UserVmManagerImpl extends ManagerBase implements UserVmManager, Use
List<Pair<NetworkVO, NicProfile>> networks = new ArrayList<Pair<NetworkVO, NicProfile>>();
Map<String, NicProfile> networkNicMap = new HashMap<String, NicProfile>();
LinkedHashMap<String, NicProfile> networkNicMap = new LinkedHashMap<String, NicProfile>();
short defaultNetworkNumber = 0;
boolean securityGroupEnabled = false;