VOL-306 :driver changes to fetch PON statistics
Change-Id: I3130e4ee035b9ff7a520b6506a0424da83f0a60d
diff --git a/device_simulator/voltha_bal_driver.c b/device_simulator/voltha_bal_driver.c
index ad530a3..796c755 100755
--- a/device_simulator/voltha_bal_driver.c
+++ b/device_simulator/voltha_bal_driver.c
@@ -181,16 +181,21 @@
memset(&stat_data, 0, sizeof(BalInterfaceStatData));
bal_interface_stat_data__init(&stat_data);
+ BalInterfaceKey stat_key;
+ memset(&stat_key, 0, sizeof(BalInterfaceKey));
+ bal_interface_key__init(&stat_key);
+
#ifndef BAL_STUB
/* Interface Type, Interface ID
stat_data - Statistics Data */
- asfvolt16_bal_stats_get(read_stats->intf_type, read_stats->intf_id, &stat_data);
+ asfvolt16_bal_stats_get(read_stats->intf_type, read_stats->intf_id, &stat_data, &stat_key);
#else
stub_bal_stats_get(&stat_data);
ASFVOLT_LOG(ASFVOLT_DEBUG, "Bal Server - Get Stats In BalStubs : Got all the statistics\n");
#endif
get_stats.data = &stat_data;
+ get_stats.key = &stat_key;
ret_val = context->gcc_stream->write(context, &get_stats, 0);
is_grpc_write_pending(ret_val);