This project can help you with GNS3 automation
Project description
GNS3Utils
GNS3Utils is a Python package that provides a convenient interface to interact with the GNS3 server API. It allows users to manage projects, nodes, links, and computes easily.
Installation
You can install the package via pip:
pip3 install GNS3Utils
Usage
Here's a quick example to get you started:
from GNS3Utils import GNS3Utils
gns3 = GNS3Utils('192.168.1.1', 80)
project = gns3.projects.create_project(project_name="Some_Project")
node = gns3.nodes.create_node("test", project['project_id'], "vpcs")
print(gns3.projects.get_project_by_name(name="Some_Project"))
print(gns3.nodes.get_project_nodes(project['project_id']))
gns3.nodes.start_project_nodes(project['project_id'])
gns3.nodes.stop_project_nodes(project['project_id'])
print(gns3.nodes.get_project_node_by_id(project['project_id'], node['node_id']))
Temporarily supports only "v3" API version
License
This project is licensed under the MIT License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file gns3utils-1.1.0.tar.gz.
File metadata
- Download URL: gns3utils-1.1.0.tar.gz
- Upload date:
- Size: 4.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
daa2a7a333d2ac839194350435abf7574bb63dc756edaff6b0e39ad4c657cedf
|
|
| MD5 |
d025c896d3e6639fde93e3b83a758471
|
|
| BLAKE2b-256 |
51f938d4c0a002bb6fef7a54841cf2af79764363df6deadc59c1fa20f22d5aa8
|
File details
Details for the file GNS3Utils-1.1.0-py3-none-any.whl.
File metadata
- Download URL: GNS3Utils-1.1.0-py3-none-any.whl
- Upload date:
- Size: 4.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e8026a5838d2784717c0a58a36a1f76bc612baf9cf37e3e1b30dc4564c2b9b86
|
|
| MD5 |
ea60b41e8802374914c56098f1bc198c
|
|
| BLAKE2b-256 |
d044397c4b8d37a3bb218c939f2401ba6cd73aa86ac25ff0789f533d4611eca1
|