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

This commit is contained in:
Wei Zhou 2024-09-24 09:18:05 +02:00 committed by GitHub
parent 00bb9ecc0b
commit 2398b5c8c9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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