davidban77 / gns3fy

Python library wrapper around GNS3 Server REST API
https://davidban77.github.io/gns3fy/
57 stars 28 forks source link

Issue creating NXOSv 9k node #25

Closed davidban77 closed 5 years ago

davidban77 commented 5 years ago

Device was created using the gns3 appliance and also tested using the GNS3 GUI client (created, started, configured), but using the gns3fy create_node method it presents this bad request error:

HTTPError: 400: Bad request http://127.0.0.1:3080/v2/compute/projects/37a90d8d-fb00-4a7e-bc93-24f6b20f3ba4/qemu/nodes {
    "message": "JSON schema error with API request '/v2/compute/projects/37a90d8d-fb00-4a7e-bc93-24f6b20f3ba4/qemu/nodes' and JSON data '{'adapter_type': 'e1000', 'adapters': 10, 'bios_image': 'OVMF-20160813.fd', 'boot_priority': 'c', 'cdrom_image': '', 'console_type': 'telnet', 'cpu_throttling': 0, 'cpus': 2, 'custom_adapters': [], 'hda_disk_image': 'nxosv.9.3.1.qcow2', 'hda_disk_interface': 'sata', 'hdb_disk_image': '', 'hdb_disk_interface': 'ide', 'hdc_disk_image': '', 'hdc_disk_interface': 'ide', 'hdd_disk_image': '', 'hdd_disk_interface': 'ide', 'initrd': '', 'kernel_command_line': '', 'kernel_image': '', 'legacy_networking': False, 'linked_clone': True, 'mac_address': '', 'on_close': 'power_off', 'options': '', 'platform': 'i386', 'process_priority': 'normal', 'qemu_path': '/usr/bin/qemu-system-x86_64', 'ram': 8096, 'usage': 'The old (I5) versions might require 8192 MB of RAM; adjust it if necessary.', 'name': 'rte1', 'node_id': 'f48e12b5-8273-4f77-a9f6-3f14eae70e04'}': '' is too short",
    "method": "POST",
    "path": "/v2/compute/projects/{project_id}/qemu/nodes",
    "request": {
        "adapter_type": "e1000",
        "adapters": 10,
        "bios_image": "OVMF-20160813.fd",
        "boot_priority": "c",
        "cdrom_image": "",
        "console_type": "telnet",
        "cpu_throttling": 0,
        "cpus": 2,
        "custom_adapters": [],
        "hda_disk_image": "nxosv.9.3.1.qcow2",
        "hda_disk_interface": "sata",
        "hdb_disk_image": "",
        "hdb_disk_interface": "ide",
        "hdc_disk_image": "",
        "hdc_disk_interface": "ide",
        "hdd_disk_image": "",
        "hdd_disk_interface": "ide",
        "initrd": "",
        "kernel_command_line": "",
        "kernel_image": "",
        "legacy_networking": false,
        "linked_clone": true,
        "mac_address": "",
        "name": "rte1",
        "node_id": "f48e12b5-8273-4f77-a9f6-3f14eae70e04",
        "on_close": "power_off",
        "options": "",
        "platform": "i386",
        "process_priority": "normal",
        "qemu_path": "/usr/bin/qemu-system-x86_64",
        "ram": 8096,
        "usage": "The old (I5) versions might require 8192 MB of RAM; adjust it if necessary."
    },
    "status": 400
}