Replies: 5 comments 5 replies
-
We could move away from JSON and use Yaml for instance? |
Beta Was this translation helpful? Give feedback.
-
This is my first stab at dividing up the fields within the schema based on versioning the "configuration" relevant portions of the schema. I also took the opportunity to shameless try and rename and consolidate some of the fields. I additionally and shamelessly used the opportunity to try and remove the restriction of only 4 drives on QEMU appliances. One of the key concepts here would be that a "default" values section would exist, and entries in a "version" would override the defaults. Conversely, this would also mean that if the field is not specified in the "version", then the "version" uses the "default" value. Conceivably, this could even apply to disk images (empty30g.qcow2 as an example) that are generic, and reused throughout versions.
Metadata Fields:CRITERIA: Fields that have no bearing on the functionality/installation/configuration of an appliance. Fields that are used to describe the appliance in a general nature or provide metadata reference the .gns3a file itself. appliance_id Versioned Administrative Fields:CRITERIA: Fields that do not affect the functionality of the appliance, but may need to be versioned, if field not specified in a version, the "default" section value is used. version Versioned Configuration Fields:first_port_name Emulator Specfic Configuration Fields (versioned)Docker:start_command IOU:serial_adapters Dynamips:chassis QEMU:adapter_type |
Beta Was this translation helpful? Give feedback.
-
@b-ehlers do you have any ideas or comments? |
Beta Was this translation helpful? Give feedback.
-
Honestly no. I'm quite happy with GNS3 v2.2 and will take time before upgrading to v3.0. While I see the benefit to make the registry schema more flexible, I currently have no need for any changes. |
Beta Was this translation helpful? Give feedback.
-
I am getting close to have defined the new appliance format, please have a look at #734 (comment) |
Beta Was this translation helpful? Give feedback.
-
With GNS3 v3.0 around the corner, it would be a great opportunity to change the appliance file format to add flexibility for custom settings / hardware configuration for specific versions and also add some other improvements:
Here is what I have in mind for now:
default
field must be configured if there are multiple configs) or the only config present if none is explicitly assigned to a version. Should we refer to this as "configs" or "settings"?checksum_type
field (md5, sha256 etc.) and replacingmd5sum
by achecksum
field in theimages
section. What algorithms should we support in addition of md5 and sha256?default_username
anddefault_password
fields?Example:
Please let me know if you have comments / suggestions.
Beta Was this translation helpful? Give feedback.
All reactions