Fix SO to RO translation for volumes
authorChamarty <ravi.chamarty@riftio.com>
Fri, 31 Mar 2017 16:11:17 +0000 (16:11 +0000)
committerChamarty <ravi.chamarty@riftio.com>
Fri, 31 Mar 2017 16:11:17 +0000 (16:11 +0000)
Signed-off-by: Chamarty <ravi.chamarty@riftio.com>
models/openmano/python/rift/openmano/rift2openmano.py

index 2ce17c0..8043646 100755 (executable)
@@ -542,7 +542,9 @@ def rift2openmano_vnfd(rift_vnfd, rift_nsd):
                     # Add Openmano devices
                     device = {}
                     device["type"] = volume.device_type
-                    device["image"] = volume.image
+                    device["image name"] = volume.image
+                    if volume.has_field("image_checksum"):
+                        device["image checksum"] = volume.image_checksum
                     vnfc["devices"].append(device)   
 
         vnfc_boot_data_init = False