VOL-1052 broadcom_onu OF port stats object in UNI logical port
Change-Id: I8738498ac851731e5a5621a9ec7e8e69856b7c30
diff --git a/voltha/adapters/broadcom_onu/broadcom_onu.py b/voltha/adapters/broadcom_onu/broadcom_onu.py
index 1b803e4..3bc655d 100644
--- a/voltha/adapters/broadcom_onu/broadcom_onu.py
+++ b/voltha/adapters/broadcom_onu/broadcom_onu.py
@@ -36,7 +36,8 @@
from voltha.protos.health_pb2 import HealthStatus
from voltha.protos.logical_device_pb2 import LogicalPort
from voltha.protos.openflow_13_pb2 import OFPPS_LIVE, OFPPF_FIBER, OFPPF_1GB_FD, OFPPS_LINK_DOWN
-from voltha.protos.openflow_13_pb2 import OFPXMC_OPENFLOW_BASIC, ofp_port
+from voltha.protos.openflow_13_pb2 import OFPXMC_OPENFLOW_BASIC, ofp_port, \
+ ofp_port_stats
from voltha.protos.bbf_fiber_base_pb2 import VEnetConfig, VOntaniConfig
from voltha.protos.bbf_fiber_traffic_descriptor_profile_body_pb2 import \
TrafficDescriptorProfileData
@@ -1508,6 +1509,9 @@
curr_speed=OFPPF_1GB_FD,
max_speed=OFPPF_1GB_FD
),
+ ofp_port_stats=ofp_port_stats(
+ port_no=port_no
+ ),
device_id=device.id,
device_port_no=uni_port.port_no
))