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
gns3utils-1.0.0.tar.gz
(4.0 kB
view details)
Built Distribution
File details
Details for the file gns3utils-1.0.0.tar.gz
.
File metadata
- Download URL: gns3utils-1.0.0.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2aecfa67ffa10bd192a31a14183509c6867b610acbe0321ef6c0fc5a031a4dbb |
|
MD5 | 5a5f9633e331b76dc9db273d3b546656 |
|
BLAKE2b-256 | e89dad33997bf7a8b268cbf7e15ea904e5760c9ec8f3ca4617c9536079c03020 |
File details
Details for the file GNS3Utils-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: GNS3Utils-1.0.0-py3-none-any.whl
- Upload date:
- Size: 4.3 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 | c0a6db296350d81da3b8786d4334bf7bb47ba9941cfec85124c5a371ef44ad85 |
|
MD5 | 5c11bda67b0c86bec7c3744d2c9d401e |
|
BLAKE2b-256 | 8e5ce18483ee03c4e2afb81f9eebfb1bfeec8b3608e54c58630d4f2f6ced38b7 |