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_url": "http://www.cisco.com/c/en/us/products/security/adaptive-security-appliance-asa-software/index.html",
"registry_version": 1,
"status": "unstable",
"status": "experimental",
"maintainer": "GNS3 Team",
"maintainer_email": "developers@gns3.net",
"symbol": ":/symbols/asa.svg",

View File

@ -45,7 +45,7 @@
"filesize": 155713536,
"md5sum": "6992d2a35d5682a99b124b5eaf5c603a",
"download_url": "https://software.cisco.com/download/release.html?mdfid=286119613&softwareid=280775065&release=9.4.1.200"
}
},
{
"filename": "asav941-200.qcow2",
"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):
try:
print("Check " + url)
req = urllib.request.Request(url, method='HEAD')
urllib.request.urlopen(req)
urllib.request.urlopen(req, 5)
except urllib.error.HTTPError as err:
if err.getcode() >= 400:
print('Error with url ' + url + ' - ' + str(err))

View File

@ -32,7 +32,7 @@
"documentation_url": {
"type": "string",
"format": "uri",
"title": "Documentation for using the appliance on vendor website"
"title": "An optional documentation for using the appliance on vendor website"
},
"product_name": {
"type": "string",
@ -41,7 +41,7 @@
"product_url": {
"type": "string",
"format": "uri",
"title": "Product url on vendor website"
"title": "An optional product url on vendor website"
},
"registry_version": {
"enum": [1],
@ -80,6 +80,10 @@
"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"
},
"linked_base": {
"type": "boolean",
"title": "False if you don't want to use a single image for all nodes"
},
"qemu": {
"type": "object",
@ -109,9 +113,29 @@
"type": "string",
"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": {
"type": "string",
"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,
@ -186,9 +210,9 @@
"type": "string",
"title": "Kernel image"
},
"initrd_image": {
"initrd": {
"type": "string",
"title": "Hda disk image"
"title": "Initrd disk image"
},
"hda_disk_image": {
"type": "string",
@ -228,7 +252,6 @@
"description",
"vendor_name",
"vendor_url",
"documentation_url",
"product_name",
"registry_version",
"status",