mirror of https://github.com/apache/cloudstack.git
Update server/src/main/java/org/apache/cloudstack/storage/template/VnfTemplateManagerImpl.java
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
parent
fb012c8f64
commit
0bfc65aa00
|
|
@ -226,7 +226,7 @@ public class VnfTemplateManagerImpl extends ManagerBase implements VnfTemplateMa
|
|||
}
|
||||
List<VnfTemplateNicVO> vnfNics = vnfTemplateNicDao.listByTemplateId(template.getId());
|
||||
for (VnfTemplateNicVO vnfNic : vnfNics) {
|
||||
if (vnfNic.isRequired() && vmNetworkMap.size() <= vnfNic.getDeviceId()) {
|
||||
if (vnfNic.isRequired() && !vmNetworkMap.containsKey(vnfNic.getDeviceId())) {
|
||||
throw new InvalidParameterValueException("VNF nic is required but not found: " + vnfNic);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue