https://jira.opencord.org/browse/VOL-167
Device Management: Retrieve Software Version on the device
Provides a framework in voltha to retrieve the software
details on the device.
Addressed Review Comments
Change-Id: I2938e6e1a57f95d41cc8f548a5ebad9c952a23db
diff --git a/voltha/adapters/broadcom_onu/broadcom_onu.py b/voltha/adapters/broadcom_onu/broadcom_onu.py
index 8adb0e8..5531978 100644
--- a/voltha/adapters/broadcom_onu/broadcom_onu.py
+++ b/voltha/adapters/broadcom_onu/broadcom_onu.py
@@ -32,7 +32,7 @@
from voltha.protos.adapter_pb2 import AdapterConfig
from voltha.protos.common_pb2 import LogLevel, OperStatus, ConnectStatus, \
AdminState
-from voltha.protos.device_pb2 import DeviceType, DeviceTypes, Port
+from voltha.protos.device_pb2 import DeviceType, DeviceTypes, Port, Image
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
@@ -244,7 +244,9 @@
device.model = 'n/a'
device.hardware_version = 'to be filled'
device.firmware_version = 'to be filled'
- device.software_version = 'to be filled'
+ device.images.image.extend([
+ Image(version="to be filled")
+ ])
device.connect_status = ConnectStatus.REACHABLE
self.adapter_agent.update_device(device)