mirror of https://github.com/apache/cloudstack.git
Removed check for default nic
This commit is contained in:
parent
013ed05ca7
commit
a5d2f8ba5c
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue