GithubHelp home page GithubHelp logo

davidwarshawsky / automatepackettracer Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 1.0 342 KB

Automate Cisco Routers. Meant for Exporting scripts to configure routers, adding other devices soon :).

Python 100.00%
cisco-packet-tracer packet-tracer

automatepackettracer's Introduction

Network Simulator

This project is a network simulator built with Python's Tkinter library. It allows you to create and manage network elements such as routers, and visually connect them to simulate a network.

Features

  • Create network elements (routers)
  • Move network elements within the canvas
  • Connect network elements with visual lines
  • Edit properties of network elements
  • Save and load configurations

Automate Packet Tracer

Getting Started

Prerequisites

  • Python 3.x

Installation

Clone the repository:

git clone https://github.com/yourusername/network-simulator.git
cd network-simulator

Code Overview

Main Components

  • ElementGroup: Class to manage individual network elements.
  • Network: Class to manage the overall network, including routers and connections.

Key Functions

  • center_bottom_menu_position: Centers and positions the menu at the bottom of the canvas.
  • start_move: Initializes the movement of network elements.
  • move: Handles the movement of network elements.
  • update_connections: Updates the positions of connections between elements.
  • bind_events: Binds events to network elements.
  • create_elements: Creates network elements on the canvas.
  • __edit_text: Allows editing of text properties of elements.
  • __save_text: Saves edited text properties of elements.
  • create_input_fields: Creates input fields for element properties.
  • save_input_fields: Saves input fields for element properties.
  • create_router: Creates a new router element.
  • select_router: Selects a router for connection.
  • create_connection: Creates a connection between two routers.

Future Updates:

  • Ability to export commands
  • Create RIP class to allow for the option rather than automatic configuration
  • Create OSPF class to allow for OSPF configuration
  • Create ability to save router as a csv file to be read in later.
  • N for new router
  • A to add an interface for the current router
  • S to save only the currently selected router script.
  • QQ to quit the application
  • R for a reminder of options as a menu popup

Go to this link and press run to use it: https://replit.com/@DavidWarshawsky/AutoPacket-Tracer#main.py Make fullscreen and then you can play around with it.

automatepackettracer's People

Contributors

davidwarshawsky avatar davidwarshawskysjsu avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

przor3n

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.