check for service type and protocol on bi directional policies

This commit is contained in:
abhishek9686 2025-05-05 09:52:41 +05:30
parent 85084f9dfe
commit 9ee0530ea6

View file

@ -1411,7 +1411,7 @@ func checkIfAnyPolicyisUniDirectional(targetNode models.Node) bool {
if !acl.Enabled {
continue
}
if acl.AllowedDirection == models.TrafficDirectionBi {
if acl.AllowedDirection == models.TrafficDirectionBi && acl.Proto == models.ALL && acl.ServiceType == models.Any {
continue
}
if acl.Proto != models.ALL || acl.ServiceType != models.Any {