Update schema for custom adapters support.

Use e1000 for the first 2 adapters in Juniper VMX legacy appliance.
This commit is contained in:
grossmj 2020-06-27 12:28:18 +09:30
parent 763dfebcf6
commit a9bb224ef8
2 changed files with 63 additions and 32 deletions

View File

@ -7,13 +7,13 @@
"documentation_url": "http://www.juniper.net/techpubs/",
"product_name": "Juniper vMX",
"product_url": "http://www.juniper.net/us/en/products-services/routing/mx-series/vmx/",
"registry_version": 3,
"registry_version": 6,
"status": "experimental",
"maintainer": "none",
"maintainer_email": "developers@gns3.net",
"symbol": "juniper-vmx.svg",
"usage": "Initial username is root, no password.\n\nTIP: use the 'show chassis fpc pic-status' command to check that PIC 0 is online and shows 'Virtual 10x1GE PIC'\n\nUse the second adapter (em2) and above to connect to other nodes",
"first_port_name": "em0",
"usage": "Initial username is root, no password.\n\nTIPS:\n* Use the 'show chassis fpc pic-status' command to check that PIC 0 is online and shows 'Virtual 10x1GE PIC'\n* Use the second adapter (em2) and above to connect to other nodes (the first two interfaces are for internal purposes).",
"first_port_name": "fxp0",
"port_name_format": "em{port1}",
"qemu": {
"adapter_type": "virtio-net-pci",
@ -22,7 +22,17 @@
"arch": "x86_64",
"console_type": "telnet",
"kvm": "require",
"options": "-nographic"
"options": "-nographic",
"custom_adapters": [
{
"adapter_number": 0,
"adapter_type": "e1000"
},
{
"adapter_number": 1,
"adapter_type": "e1000"
}
]
},
"images": [
{

View File

@ -252,8 +252,21 @@
},
"custom_adapters": {
"type": "array",
"title": "Customer drivers for each adapter",
"title": "Custom adapters",
"items": {
"type": "object",
"properties": {
"adapter_number": {
"title": "Adapter number",
"type": "integer"
},
"port_name": {
"title": "Custom port name",
"type": "string",
"minimum": 1
},
"adapter_type": {
"title": "Custom adapter type",
"type": "string",
"enum": [
"e1000",
@ -276,8 +289,16 @@
"virtio",
"virtio-net-pci",
"vmxnet3"
],
"title": "Type of the custom network adapter"
]
},
"mac_address": {
"title": "Custom MAC address",
"type": "string",
"minimum": 1,
"pattern": "^([0-9a-fA-F]{2}[:]){5}([0-9a-fA-F]{2})$"
}
},
"required": ["adapter_number"]
}
},
"ram": {