[VOL-5527] update nni periodic stats

Change-Id: If065bb01ce54fd3ea3aa0763e635069efa0732ac
Signed-off-by: Akash Reddy Kankanala <akash.kankanala@radisys.com>
diff --git a/agent/src/stats_collection.cc b/agent/src/stats_collection.cc
index 16934ae..5524daf 100644
--- a/agent/src/stats_collection.cc
+++ b/agent/src/stats_collection.cc
@@ -232,19 +232,18 @@
             {
                 //std::cout << "Interface statistics retrieved"
                 //          << " intf_id:" << intf_id << std::endl;
-
                 port_stats->set_rx_bytes(nni_stats.data.rx_bytes);
-                port_stats->set_rx_packets(nni_stats.data.rx_packets);
-                port_stats->set_rx_ucast_packets(nni_stats.data.rx_ucast_packets);
-                port_stats->set_rx_mcast_packets(nni_stats.data.rx_mcast_packets);
-                port_stats->set_rx_bcast_packets(nni_stats.data.rx_bcast_packets);
-                port_stats->set_rx_error_packets(nni_stats.data.rx_error_packets);
+                port_stats->set_rx_frames(nni_stats.data.rx_packets);
+                port_stats->set_rx_ucast_frames(nni_stats.data.rx_ucast_packets);
+                port_stats->set_rx_mcast_frames(nni_stats.data.rx_mcast_packets);
+                port_stats->set_rx_bcast_frames(nni_stats.data.rx_bcast_packets);
+                port_stats->set_rx_error_frames(nni_stats.data.rx_error_packets);
                 port_stats->set_tx_bytes(nni_stats.data.tx_bytes);
-                port_stats->set_tx_packets(nni_stats.data.tx_packets);
-                port_stats->set_tx_ucast_packets(nni_stats.data.tx_ucast_packets);
-                port_stats->set_tx_mcast_packets(nni_stats.data.tx_mcast_packets);
-                port_stats->set_tx_bcast_packets(nni_stats.data.tx_bcast_packets);
-                port_stats->set_tx_error_packets(nni_stats.data.tx_error_packets);
+                port_stats->set_tx_frames(nni_stats.data.tx_packets);
+                port_stats->set_tx_ucast_frames(nni_stats.data.tx_ucast_packets);
+                port_stats->set_tx_mcast_frames(nni_stats.data.tx_mcast_packets);
+                port_stats->set_tx_bcast_frames(nni_stats.data.tx_bcast_packets);
+                port_stats->set_tx_error_frames(nni_stats.data.tx_error_packets);
 
             } else {
                 OPENOLT_LOG(ERROR, openolt_log_id,  "Failed to retrieve port statistics, intf_id %d, intf_type %d, err = %s\n",