Fix SO to RO translation for volumes
[osm/SO.git] / 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