Bug 7885 - CSIT Sporadic failures - 83/52983/2
authorAswin Suryanarayanan <asuryana@redhat.com>
Mon, 6 Mar 2017 11:43:44 +0000 (17:13 +0530)
committerAlon Kochba <alonko@hpe.com>
Wed, 8 Mar 2017 18:37:06 +0000 (18:37 +0000)
tempest.scenario.test_port_security_macspoofing_port

On port-security update  bind/ubind service is now called.

Change-Id: I46cfae8b13a3f67647bfc501b3e55faf8c827a37
Signed-off-by: Aswin Suryanarayanan <asuryana@redhat.com>
(cherry picked from commit 9a9c988bfa3574126b38003d5a8eb713536809c2)

vpnservice/aclservice/impl/src/main/java/org/opendaylight/netvirt/aclservice/AbstractAclServiceImpl.java

index 4283caf0bbfa2ce6d511dd8b1aac00c5dff386c0..944419d9b037a72ae0c7c37a6f6984911c7bf594 100644 (file)
@@ -119,9 +119,9 @@ public abstract class AbstractAclServiceImpl implements AclServiceListener {
         // if port security is changed, apply/remove Acls
         if (isPortSecurityEnableBefore != isPortSecurityEnable) {
             if (isPortSecurityEnable) {
-                result = applyAcl(portAfter);
+                result = applyAcl(portAfter) && bindAcl(portAfter);
             } else {
-                result = removeAcl(portAfter);
+                result = removeAcl(portAfter) && unbindAcl(portAfter);
             }
         } else if (isPortSecurityEnable) {
             // Acls has been updated, find added/removed Acls and act accordingly.