VOL-931 Adding statistics collection trigger

Change-Id: I6fd6e3254b83cb0f4f3b3a6aa2abde5065a24753
diff --git a/common/server.cc b/common/server.cc
index 027c24b..65a9d96 100644
--- a/common/server.cc
+++ b/common/server.cc
@@ -225,6 +225,16 @@
         return DisablePonIf_(request->intf_id());
     }
 
+    Status CollectStatistics(
+            ServerContext* context,
+            const openolt::Empty* request,
+            openolt::Empty* response) override {
+
+        stats_collection();
+
+        return Status::OK;
+    }
+
     Status Reboot(
             ServerContext* context,
             const openolt::Empty* request,
diff --git a/protos/openolt.proto b/protos/openolt.proto
index d02b64f..2ee2346 100644
--- a/protos/openolt.proto
+++ b/protos/openolt.proto
@@ -109,6 +109,13 @@
         };
     }
 
+    rpc CollectStatistics(Empty) returns (Empty) {
+        option (google.api.http) = {
+            post: "/v1/CollectStatistics"
+            body: "*"
+        };
+    }
+    
     rpc Reboot(Empty) returns (Empty) {
          option (google.api.http) = {
             post: "/v1/Reboot"