server: apply network ACL even if there is no network ACLs in the ACL list (#9374) (#10241)

This commit is contained in:
Wei Zhou 2025-05-01 09:24:53 +02:00 committed by GitHub
parent dfd64b1a67
commit fe77f5f285
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -229,11 +229,6 @@ public class AdvancedNetworkTopology extends BasicNetworkTopology {
public boolean applyNetworkACLs(final Network network, final List<? extends NetworkACLItem> rules, final VirtualRouter router, final boolean isPrivateGateway)
throws ResourceUnavailableException {
if (rules == null || rules.isEmpty()) {
logger.debug("No network ACLs to be applied for network {}", network);
return true;
}
logger.debug("APPLYING NETWORK ACLs RULES");
final String typeString = "network acls";