Removed check for default nic

This commit is contained in:
alena 2010-12-08 11:00:49 -08:00
parent 013ed05ca7
commit a5d2f8ba5c
1 changed files with 1 additions and 3 deletions

View File

@ -889,9 +889,7 @@ public class NetworkManagerImpl implements NetworkManager, NetworkService, Manag
vm.addNic(new NicProfile(vo, network.first(), vo.getBroadcastUri(), vo.getIsolationUri()));
}
if (defaultNic == null && nics.size() > 2) {
throw new IllegalArgumentException("Default Nic was not set.");
} else if (nics.size() == 1) {
if (nics.size() == 1) {
nics.get(0).setDefaultNic(true);
}