Skip to main content

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


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.1.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

GNS3Utils-1.0.1-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file gns3utils-1.0.1.tar.gz.

File metadata

  • Download URL: gns3utils-1.0.1.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.6

File hashes

Hashes for gns3utils-1.0.1.tar.gz
Algorithm Hash digest
SHA256 1a3a701926201b09887015b8983c99f6855feb292f44f41c838088d3b966de80
MD5 e77a580d2830c1aa86767e53d72b5344
BLAKE2b-256 7a147bb09a8630f21e5b4f9c53c8b1c0ee1aad4dec4732f2955ab7f3a7419aea

See more details on using hashes here.

File details

Details for the file GNS3Utils-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: GNS3Utils-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 4.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.6

File hashes

Hashes for GNS3Utils-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 575c80c3c603a5a1f91a7a83f06e0ef6e91b46c6e62e6687e57f0bd95afdcdbb
MD5 371056db7e8789fcac954a851939b5e2
BLAKE2b-256 32f8e951a586be5aa2c2dcef786d3523efc1e966b8b60f4798a4761eede62ad6

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page