2015-05-22 11:22:13 +02:00
|
|
|
GNS3-registry
|
2015-05-21 16:42:26 +02:00
|
|
|
================
|
|
|
|
|
2015-09-23 10:02:47 +02:00
|
|
|
.. image:: https://travis-ci.org/GNS3/gns3-registry.svg
|
|
|
|
:target: https://travis-ci.org/GNS3/gns3-registry
|
2015-05-21 16:42:26 +02:00
|
|
|
|
2015-09-11 14:42:01 +02:00
|
|
|
This is the GNS3 registry where user can share
|
2015-10-02 14:52:15 +02:00
|
|
|
appliances configurations and symbols.
|
|
|
|
|
|
|
|
Add a new symbol
|
|
|
|
################
|
|
|
|
Look for examples in the symbols directory.
|
2015-08-06 15:05:14 +02:00
|
|
|
|
2015-09-02 11:21:50 +02:00
|
|
|
|
2015-08-06 15:05:14 +02:00
|
|
|
Add a new appliance
|
|
|
|
###################
|
|
|
|
|
2015-09-03 10:28:38 +02:00
|
|
|
Two way to create a new appliance:
|
2016-02-22 13:19:14 +01:00
|
|
|
- Copy paste a JSON from the appliances directory
|
|
|
|
- Use the new_appliance.py
|
2015-09-03 10:28:38 +02:00
|
|
|
|
|
|
|
After that you can send us a pull request on Github.
|
2015-08-06 15:05:14 +02:00
|
|
|
|
2015-05-21 16:42:26 +02:00
|
|
|
|
2015-09-03 10:49:05 +02:00
|
|
|
In schemas/appliance.json you have a JSON with a schema for controlling the file
|
|
|
|
and can be use as documentation for each fields.
|
2015-09-02 11:21:50 +02:00
|
|
|
|
2016-04-07 10:21:15 +02:00
|
|
|
Docker container
|
|
|
|
################
|
|
|
|
|
|
|
|
This repository contain also the source of Docker container publish by the GNS3
|
|
|
|
team and that can be used as appliance in GNS3.
|
2015-09-02 11:21:50 +02:00
|
|
|
|
|
|
|
Tools
|
|
|
|
#######
|
|
|
|
|
|
|
|
All tools require python3 and the installation of dependencies via:
|
|
|
|
|
2015-11-10 14:56:58 +01:00
|
|
|
.. code:: bash
|
2015-09-02 11:21:50 +02:00
|
|
|
|
|
|
|
pip3 install -r requirements.txt
|
|
|
|
|
|
|
|
|
|
|
|
Check appliance files
|
|
|
|
-----------------------
|
|
|
|
|
|
|
|
.. code:: bash
|
2015-11-10 14:56:58 +01:00
|
|
|
|
2018-03-03 14:55:31 +01:00
|
|
|
python check.py
|
2015-11-11 10:43:47 +01:00
|
|
|
python3 check_urls.py
|
2015-05-21 18:55:46 +02:00
|
|
|
|
2019-01-14 00:17:02 +01:00
|
|
|
If `imagemagick` is installed, it will be used to check the symbol properties.
|
2019-01-13 18:27:50 +01:00
|
|
|
Otherwise an (experimental) internal function will do that.
|
2015-09-03 10:28:38 +02:00
|
|
|
|
|
|
|
Create a new appliance
|
|
|
|
-----------------------
|
|
|
|
|
|
|
|
.. code:: bash
|
|
|
|
|
|
|
|
python3 new_appliance.py
|
|
|
|
|
2016-01-11 12:26:02 +01:00
|
|
|
|
|
|
|
Prettify appliances JSON
|
|
|
|
-------------------------
|
|
|
|
|
|
|
|
This will indent the JSON of all appliance and sort the key in same order as
|
|
|
|
the JSON schema.
|
|
|
|
|
|
|
|
.. code:: bash
|
|
|
|
python3 prettify_appliances.py
|