diff --git a/gns3server/schemas/dynamips_vm.py b/gns3server/schemas/dynamips_vm.py index 1bfdcc50a..ee4c88839 100644 --- a/gns3server/schemas/dynamips_vm.py +++ b/gns3server/schemas/dynamips_vm.py @@ -57,6 +57,11 @@ VM_CREATE_SCHEMA = { "type": "string", "minLength": 1, }, + "image_md5sum": { + "description": "checksum of the IOS image", + "type": "string", + "minLength": 1, + }, "startup_config": { "description": "path to the IOS startup configuration file", "type": "string", @@ -288,6 +293,11 @@ VM_UPDATE_SCHEMA = { "type": "string", "minLength": 1, }, + "image_md5sum": { + "description": "checksum of the IOS image", + "type": "string", + "minLength": 1, + }, "startup_config_content": { "description": "Content of IOS startup configuration file", "type": "string", diff --git a/gns3server/schemas/iou.py b/gns3server/schemas/iou.py index c5db5700a..63c111650 100644 --- a/gns3server/schemas/iou.py +++ b/gns3server/schemas/iou.py @@ -46,6 +46,10 @@ IOU_CREATE_SCHEMA = { "description": "Path of iou binary", "type": "string" }, + "md5sum": { + "description": "Checksum of iou binary", + "type": "string" + }, "serial_adapters": { "description": "How many serial adapters are connected to the IOU", "type": "integer" @@ -115,6 +119,10 @@ IOU_UPDATE_SCHEMA = { "description": "Path of iou binary", "type": ["string", "null"] }, + "md5sum": { + "description": "Checksum of iou binary", + "type": "string" + }, "serial_adapters": { "description": "How many serial adapters are connected to the IOU", "type": ["integer", "null"] diff --git a/gns3server/schemas/qemu.py b/gns3server/schemas/qemu.py index 3df7242c8..90da25e9f 100644 --- a/gns3server/schemas/qemu.py +++ b/gns3server/schemas/qemu.py @@ -55,18 +55,34 @@ QEMU_CREATE_SCHEMA = { }, "hda_disk_image": { "description": "QEMU hda disk image path", - "type": ["string", "null"], + "type": "string", + }, + "hda_disk_image_md5sum": { + "description": "QEMU hda disk image checksum", + "type": ["string", "null"] }, "hdb_disk_image": { "description": "QEMU hdb disk image path", + "type": "string", + }, + "hdb_disk_image_md5sum": { + "description": "QEMU hdb disk image checksum", "type": ["string", "null"], }, "hdc_disk_image": { "description": "QEMU hdc disk image path", + "type": "string", + }, + "hdc_disk_image_md5sum": { + "description": "QEMU hdc disk image checksum", "type": ["string", "null"], }, "hdd_disk_image": { "description": "QEMU hdd disk image path", + "type": "string", + }, + "hdd_disk_image_md5sum": { + "description": "QEMU hdd disk image checksum", "type": ["string", "null"], }, "ram": { @@ -91,11 +107,19 @@ QEMU_CREATE_SCHEMA = { "pattern": "^([0-9a-fA-F]{2}[:]){5}([0-9a-fA-F]{2})$" }, "initrd": { + "description": "QEMU initrd path", + "type": "string", + }, + "initrd_md5sum": { "description": "QEMU initrd path", "type": ["string", "null"], }, "kernel_image": { "description": "QEMU kernel image path", + "type": "string", + }, + "kernel_image_md5sum": { + "description": "QEMU kernel image checksum", "type": ["string", "null"], }, "kernel_command_line": { @@ -166,18 +190,34 @@ QEMU_UPDATE_SCHEMA = { }, "hda_disk_image": { "description": "QEMU hda disk image path", - "type": ["string", "null"], + "type": "string", + }, + "hda_disk_image_md5sum": { + "description": "QEMU hda disk image checksum", + "type": ["string", "null"] }, "hdb_disk_image": { "description": "QEMU hdb disk image path", + "type": "string", + }, + "hdb_disk_image_md5sum": { + "description": "QEMU hdb disk image checksum", "type": ["string", "null"], }, "hdc_disk_image": { "description": "QEMU hdc disk image path", + "type": "string", + }, + "hdc_disk_image_md5sum": { + "description": "QEMU hdc disk image checksum", "type": ["string", "null"], }, "hdd_disk_image": { "description": "QEMU hdd disk image path", + "type": "string", + }, + "hdd_disk_image_md5sum": { + "description": "QEMU hdd disk image checksum", "type": ["string", "null"], }, "ram": { @@ -202,11 +242,19 @@ QEMU_UPDATE_SCHEMA = { "pattern": "^([0-9a-fA-F]{2}[:]){5}([0-9a-fA-F]{2})$" }, "initrd": { + "description": "QEMU initrd path", + "type": "string", + }, + "initrd_md5sum": { "description": "QEMU initrd path", "type": ["string", "null"], }, "kernel_image": { "description": "QEMU kernel image path", + "type": "string", + }, + "kernel_image_md5sum": { + "description": "QEMU kernel image checksum", "type": ["string", "null"], }, "kernel_command_line": {