private void initializeAclEvaluator() { _aclEvaluator = new Evaluator(_currentFlow, _srcInterface, _namedAcls, _namedIpSpaces); }
public static boolean matches( AclLineMatchExpr item, Flow flow, String srcInterface, Map<String, IpAccessList> availableAcls, Map<String, IpSpace> namedIpSpaces) { return item.accept(new Evaluator(flow, srcInterface, availableAcls, namedIpSpaces)); }
public FilterResult filter( Flow flow, String srcInterface, Map<String, IpAccessList> availableAcls, Map<String, IpSpace> namedIpSpaces, LineAction defaultAction) { Evaluator evaluator = new Evaluator(flow, srcInterface, availableAcls, namedIpSpaces); for (int i = 0; i < _lines.size(); i++) { IpAccessListLine line = _lines.get(i); if (line.getMatchCondition().accept(evaluator)) { return new FilterResult(i, line.getAction()); } } return new FilterResult(null, defaultAction); }
Evaluator aclEval = new Evaluator(flow, null, ImmutableMap.of(), ImmutableMap.of()); List<FirewallSessionTraceInfo> matchingSessions = sessions.stream()