GNS3 / gns3-gui

GNS3 Graphical Network Simulator
http://www.gns3.com
GNU General Public License v3.0
2.17k stars 436 forks source link

Create a .gns3appliance from GNS3 #1221

Open grossmj opened 8 years ago

grossmj commented 8 years ago

It would be nice to create a .gns3appliance file from an existing template in the preferences. This would make contributions a lot easier.

danieldemers commented 8 years ago

Is the point to create a template others could follow? Allowing the community to contribute templates for platforms we want to use?

grossmj commented 8 years ago

Yep, that is the point :)

ghost commented 3 months ago

I have created a Python script that uses the API to get a template and creates an appliance from that. It supports both GNS3 v2 and v3. Besides using this as a starting point for creating an appliance, it could help migrating v2 profiles to v3.

Interested?

grossmj commented 3 months ago

Yes please 🙏

ghost commented 3 months ago

Here the export script: export_appliance.py.txt (remove the .txt extension after downloading)

It uses a slightly modified version of my minimal API module: gns3api.py.txt

The export script is not really complicated, but all the various options makes it large. It started with support for the older appliance versions and just lately got an update to support appliance version v8 as well. It tries to generate the lowest appliance version possible.

grossmj commented 1 month ago

I will add this in v3.1 👍