Bug 5617: policy enforcer symmetric action chain fix 91/37491/1
authorMatej Perina <matej.perina@pantheon.sk>
Tue, 12 Apr 2016 11:45:48 +0000 (13:45 +0200)
committerMatej Perina <matej.perina@pantheon.sk>
Tue, 12 Apr 2016 11:52:02 +0000 (13:52 +0200)
Change-Id: I4a2e71891b01a5344fe5af8a6267cebbfcd3d116
Signed-off-by: Matej Perina <matej.perina@pantheon.sk>
renderers/ofoverlay/src/main/java/org/opendaylight/groupbasedpolicy/renderer/ofoverlay/mapper/policyenforcer/PolicyEnforcer.java

index e8f3c5379e2c3331c3c7e97ef84d1c2238b0dc15..11a872effcad5eb6fff1733ee4f848094b9ab3f7 100755 (executable)
@@ -346,8 +346,8 @@ public class PolicyEnforcer extends FlowTable {
                     if (!oppositeChainNames.containsAll(chainNames)) {
                         return null;
                     }
-                    if ((consumedRules.contains(rule) && (direction.equals(Direction.In)))
-                            || ((!consumedRules.contains(rule)) && direction.equals(Direction.Out))) {
+                    if ((consumedRules.contains(rule) && (direction.equals(Direction.Out)))
+                            || ((!consumedRules.contains(rule)) && direction.equals(Direction.In))) {
                         return new ArrayList<>();
                     }
                 }