Add VERSION file and read version into VOLTHA core.
Add CLI to view VOLTHA core version.
Change-Id: I73eac175d836dec2bb647d0ff74bb33e18580b85
diff --git a/cli/main.py b/cli/main.py
index a1c7226..b8cb918 100755
--- a/cli/main.py
+++ b/cli/main.py
@@ -274,6 +274,12 @@
from pdb import set_trace
set_trace()
+ def do_version(self, line):
+ """Show the VOLTHA core version"""
+ stub = self.get_stub()
+ voltha = stub.GetVoltha(Empty())
+ self.poutput('{}'.format(voltha.version))
+
def do_health(self, line):
"""Show connectivity status to Voltha status"""
stub = voltha_pb2.HealthServiceStub(self.get_channel())