VOL-63: Image Download and Image Update support
    - download image
    - get image download status
    - cancel image download
    - list all image downloads
    - activate image update
    - revert image update
    - itest added

Change-Id: I95a5f76071679c8787b2f775de24c96d4e7d462f
diff --git a/cli/utils.py b/cli/utils.py
index 5ca0da5..105931b 100644
--- a/cli/utils.py
+++ b/cli/utils.py
@@ -159,3 +159,8 @@
 def dict2line(d):
     assert isinstance(d, dict)
     return ', '.join('{}: {}'.format(k, v) for k, v in sorted(d.items()))
+
+def enum2name(msg_obj, enum_type, enum_value):
+    descriptor = msg_obj.DESCRIPTOR.enum_types_by_name[enum_type]
+    name = descriptor.values_by_number[enum_value].name
+    return name