mirror of
https://github.com/GNS3/gns3-server.git
synced 2024-12-23 14:42:28 +00:00
Do not raise a 404 if we send the checksum of the images
This commit is contained in:
parent
f398d15025
commit
5c4a49a8c7
@ -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",
|
||||
|
@ -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"]
|
||||
|
@ -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": {
|
||||
|
Loading…
Reference in New Issue
Block a user