[OS] Make ACL react to HOST UPDATED event

Change-Id: I3fece2b5ed9b4feeb9b9ee6c6c3c4893677dcd22
diff --git a/apps/acl/BUCK b/apps/acl/BUCK
index 45b13eb..bbe0f16 100644
--- a/apps/acl/BUCK
+++ b/apps/acl/BUCK
@@ -16,6 +16,10 @@
     deps = COMPILE_DEPS,
     test_deps = TEST_DEPS,
     web_context = '/onos/v1/acl',
+    api_title = 'ACL API',
+    api_version = '1.0',
+    api_description = 'REST API for ACL app',
+    api_package = 'org.onosproject.acl',
 )
 
 onos_app (
diff --git a/apps/acl/src/main/java/org/onosproject/acl/impl/AclManager.java b/apps/acl/src/main/java/org/onosproject/acl/impl/AclManager.java
index 3b8617e..d7e7748 100644
--- a/apps/acl/src/main/java/org/onosproject/acl/impl/AclManager.java
+++ b/apps/acl/src/main/java/org/onosproject/acl/impl/AclManager.java
@@ -106,7 +106,7 @@
     private class InternalHostListener implements HostListener {
 
         /**
-         * Generate new ACL flow rules for new host following the given ACL rule.
+         * Generate new ACL flow rules for new or updated host following the given ACL rule.
          */
         private void processHostAddedEvent(HostEvent event, AclRule rule) {
             DeviceId deviceId = event.subject().location().deviceId();
@@ -130,9 +130,9 @@
 
         @Override
         public void event(HostEvent event) {
-            // if a new host appears and an existing rule denies
+            // if a new host appears or is updated and an existing rule denies
             // its traffic, a new ACL flow rule is generated.
-            if (event.type() == HostEvent.Type.HOST_ADDED) {
+            if (event.type() == HostEvent.Type.HOST_ADDED || event.type() == HostEvent.Type.HOST_UPDATED) {
                 DeviceId deviceId = event.subject().location().deviceId();
                 if (mastershipService.getLocalRole(deviceId) == MastershipRole.MASTER) {
                     for (AclRule rule : aclStore.getAclRules()) {