NSX: fix smoke test failure for ACLs (#9)

This commit is contained in:
Pearl Dsilva 2024-02-02 10:21:06 -05:00 committed by GitHub
parent 9d5c874069
commit a1990e51f7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 0 deletions

View File

@ -439,6 +439,9 @@ public class NetworkACLServiceImpl extends ManagerBase implements NetworkACLServ
private void validateNsxConstraints(long vpcId, String protocol, Integer icmpType,
Integer icmpCode, Integer sourcePortStart, Integer sourcePortEnd) {
VpcVO vpc = _vpcDao.findById(vpcId);
if (Objects.isNull(vpc)) {
return;
}
final DataCenter dc = _entityMgr.findById(DataCenter.class, vpc.getZoneId());
final NsxProviderVO nsxProvider = nsxProviderDao.findByZoneId(dc.getId());
if (Objects.isNull(nsxProvider)) {