Skip to content

Commit

Permalink
Merge pull request #27429 from openshift-cherrypick-robot/cherry-pick…
Browse files Browse the repository at this point in the history
…-27390-to-release-4.10

[release-4.10] OCPBUGS-1454: Fixes OVN ACL audit log parsing
  • Loading branch information
openshift-merge-robot committed Sep 26, 2022
2 parents 0a34c03 + 8c12d2c commit 58994bc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/extended/networking/acl_audit_log.go
Expand Up @@ -206,7 +206,8 @@ func verifyAuditLogs(out string, ns []string, ips []string, ipv6 bool) (bool, bo
allowLogFound = true
continue
}
if strings.Contains(logLine, ns[0]+"_allow-from-same-ns\", verdict=drop") && strings.Contains(logLine, ipMatchSrc+ips[2]) &&
if (strings.Contains(logLine, ns[0]+"_allow-from-same-ns\", verdict=drop") && strings.Contains(logLine, ipMatchSrc+ips[2]) ||
strings.Contains(logLine, ns[0]+"_ingressDefaultDeny\", verdict=drop") && strings.Contains(logLine, ipMatchSrc+ips[2])) &&
strings.Contains(logLine, ipMatchDst+ips[0]) {
denyLogFound = true
continue
Expand Down

0 comments on commit 58994bc

Please sign in to comment.