Fix appliances and check

Fix #32
This commit is contained in:
Julien Duponchelle 2015-10-20 15:46:44 +02:00
parent fbd96a795d
commit 4e12be9874
4 changed files with 32 additions and 8 deletions

View File

@ -7,7 +7,7 @@
"product_name": "ASAv", "product_name": "ASAv",
"product_url": "http://www.cisco.com/c/en/us/products/security/adaptive-security-appliance-asa-software/index.html", "product_url": "http://www.cisco.com/c/en/us/products/security/adaptive-security-appliance-asa-software/index.html",
"registry_version": 1, "registry_version": 1,
"status": "unstable", "status": "experimental",
"maintainer": "GNS3 Team", "maintainer": "GNS3 Team",
"maintainer_email": "developers@gns3.net", "maintainer_email": "developers@gns3.net",
"symbol": ":/symbols/asa.svg", "symbol": ":/symbols/asa.svg",

View File

@ -45,7 +45,7 @@
"filesize": 155713536, "filesize": 155713536,
"md5sum": "6992d2a35d5682a99b124b5eaf5c603a", "md5sum": "6992d2a35d5682a99b124b5eaf5c603a",
"download_url": "https://software.cisco.com/download/release.html?mdfid=286119613&softwareid=280775065&release=9.4.1.200" "download_url": "https://software.cisco.com/download/release.html?mdfid=286119613&softwareid=280775065&release=9.4.1.200"
} },
{ {
"filename": "asav941-200.qcow2", "filename": "asav941-200.qcow2",
"version": "9.4.1-202", "version": "9.4.1-202",

View File

@ -32,8 +32,9 @@ urllib.request.install_opener(urllib.request.build_opener(MyHTTPRedirectHandler)
def check_url(url, appliance): def check_url(url, appliance):
try: try:
print("Check " + url)
req = urllib.request.Request(url, method='HEAD') req = urllib.request.Request(url, method='HEAD')
urllib.request.urlopen(req) urllib.request.urlopen(req, 5)
except urllib.error.HTTPError as err: except urllib.error.HTTPError as err:
if err.getcode() >= 400: if err.getcode() >= 400:
print('Error with url ' + url + ' - ' + str(err)) print('Error with url ' + url + ' - ' + str(err))

View File

@ -32,7 +32,7 @@
"documentation_url": { "documentation_url": {
"type": "string", "type": "string",
"format": "uri", "format": "uri",
"title": "Documentation for using the appliance on vendor website" "title": "An optional documentation for using the appliance on vendor website"
}, },
"product_name": { "product_name": {
"type": "string", "type": "string",
@ -41,7 +41,7 @@
"product_url": { "product_url": {
"type": "string", "type": "string",
"format": "uri", "format": "uri",
"title": "Product url on vendor website" "title": "An optional product url on vendor website"
}, },
"registry_version": { "registry_version": {
"enum": [1], "enum": [1],
@ -80,6 +80,10 @@
"type": "integer", "type": "integer",
"title": "Optional port segment size. A port segment is a block of port. For example Ethernet0/0 Ethernet0/1 is the module 0 with a port segment size of 2" "title": "Optional port segment size. A port segment is a block of port. For example Ethernet0/0 Ethernet0/1 is the module 0 with a port segment size of 2"
}, },
"linked_base": {
"type": "boolean",
"title": "False if you don't want to use a single image for all nodes"
},
"qemu": { "qemu": {
"type": "object", "type": "object",
@ -109,9 +113,29 @@
"type": "string", "type": "string",
"title": "Optional define the disk boot priory. Refer to -boot option in qemu manual for more details." "title": "Optional define the disk boot priory. Refer to -boot option in qemu manual for more details."
}, },
"kernel_command_line": {
"type": "string",
"title": "Command line parameters send to the kernel"
},
"options": { "options": {
"type": "string", "type": "string",
"title": "Optional additional qemu command line options" "title": "Optional additional qemu command line options"
},
"cpu_throttling": {
"type": "number",
"minimum": 0,
"maximum": 100,
"title": "Throttle the CPU"
},
"process_priority": {
"description": "Process priority for QEMU",
"enum": ["realtime",
"very high",
"high",
"normal",
"low",
"very low",
"null"]
} }
}, },
"additionalProperties": false, "additionalProperties": false,
@ -186,9 +210,9 @@
"type": "string", "type": "string",
"title": "Kernel image" "title": "Kernel image"
}, },
"initrd_image": { "initrd": {
"type": "string", "type": "string",
"title": "Hda disk image" "title": "Initrd disk image"
}, },
"hda_disk_image": { "hda_disk_image": {
"type": "string", "type": "string",
@ -228,7 +252,6 @@
"description", "description",
"vendor_name", "vendor_name",
"vendor_url", "vendor_url",
"documentation_url",
"product_name", "product_name",
"registry_version", "registry_version",
"status", "status",