mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-05 14:51:13 +02:00
Support listing images in subdirectories
It's a part of the OVA support: https://github.com/GNS3/gns3-gui/issues/700
This commit is contained in:
1 parent
dd7f6eb021
commit
034ac392b7
11 files changed
+84
-79
No files matched your search
@@ -777,21 +777,3 @@ VM_CONFIGS_SCHEMA = {
|
||||
},
|
||||
"additionalProperties": False,
|
||||
}
|
||||
|
||||
VMS_LIST_SCHEMA = {
|
||||
"$schema": "http://json-schema.org/draft-04/schema#",
|
||||
"description": "List available Dynamips images",
|
||||
"type": "array",
|
||||
"items": [
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"filename": {
|
||||
"description": "Image filename",
|
||||
"type": ["string"]
|
||||
},
|
||||
},
|
||||
}
|
||||
],
|
||||
"additionalProperties": False,
|
||||
}
|
||||
@@ -299,21 +299,3 @@ IOU_CONFIGS_SCHEMA = {
|
||||
},
|
||||
"additionalProperties": False,
|
||||
}
|
||||
|
||||
IOU_LIST_VMS_SCHEMA = {
|
||||
"$schema": "http://json-schema.org/draft-04/schema#",
|
||||
"description": "List available IOU images",
|
||||
"type": "array",
|
||||
"items": [
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"filename": {
|
||||
"description": "Image filename",
|
||||
"type": ["string"]
|
||||
},
|
||||
},
|
||||
}
|
||||
],
|
||||
"additionalProperties": False,
|
||||
}
|
||||
@@ -577,25 +577,6 @@ QEMU_BINARY_LIST_SCHEMA = {
|
||||
"additionalProperties": False,
|
||||
}
|
||||
|
||||
QEMU_LIST_IMAGES_SCHEMA = {
|
||||
"$schema": "http://json-schema.org/draft-04/schema#",
|
||||
"description": "List available QEMU images",
|
||||
"type": "array",
|
||||
"items": [
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"filename": {
|
||||
"description": "Image filename",
|
||||
"type": "string"
|
||||
},
|
||||
},
|
||||
"additionalProperties": False
|
||||
}
|
||||
],
|
||||
"additionalProperties": False,
|
||||
}
|
||||
|
||||
QEMU_IMAGE_CREATE_SCHEMA = {
|
||||
"$schema": "http://json-schema.org/draft-04/schema#",
|
||||
"description": "Create a new qemu image. Options can be specific to a format. Read qemu-img manual for more information",
|
||||
|
||||
@@ -0,0 +1,40 @@
|
||||
#!/usr/bin/env python
|
||||
#
|
||||
# Copyright (C) 2015 GNS3 Technologies Inc.
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation, either version 3 of the License, or
|
||||
# (at your option) any later version.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
|
||||
VM_LIST_IMAGES_SCHEMA = {
|
||||
"$schema": "http://json-schema.org/draft-04/schema#",
|
||||
"description": "List of disk images",
|
||||
"type": "array",
|
||||
"items": [
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"filename": {
|
||||
"description": "Image filename",
|
||||
"type": "string"
|
||||
},
|
||||
"path": {
|
||||
"description": "Image path",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"additionalProperties": False
|
||||
}
|
||||
],
|
||||
"additionalProperties": False,
|
||||
}
|
||||
Reference in new issue
Block a user