- if (aclInterfaces != null) {
- for (AclInterface aclInterface : aclInterfaces) {
- AclInterface aclInterfaceInCache =
- aclInterfaceCache.addOrUpdate(aclInterface.getInterfaceId(), (prevAclInterface, builder) -> {
- SortedSet<Integer> remoteAclTags =
- aclServiceUtils.getRemoteAclTags(aclInterface.getSecurityGroups(), direction);
- if (DirectionEgress.class.equals(direction)) {
- builder.egressRemoteAclTags(remoteAclTags);
- } else {
- builder.ingressRemoteAclTags(remoteAclTags);
- }
- });
-
- aclDataUtil.addOrUpdateAclInterfaceMap(aclInterface.getSecurityGroups(), aclInterfaceInCache);
- }
+ for (AclInterface aclInterface : aclInterfaces) {
+ AclInterface aclInterfaceInCache =
+ aclInterfaceCache.addOrUpdate(aclInterface.getInterfaceId(), (prevAclInterface, builder) -> {
+ SortedSet<Integer> remoteAclTags =
+ aclServiceUtils.getRemoteAclTags(aclInterface.getSecurityGroups(), direction);
+ if (DirectionEgress.class.equals(direction)) {
+ builder.egressRemoteAclTags(remoteAclTags);
+ } else {
+ builder.ingressRemoteAclTags(remoteAclTags);
+ }
+ });
+
+ aclDataUtil.addOrUpdateAclInterfaceMap(aclInterface.getSecurityGroups(), aclInterfaceInCache);