GithubHelp home page GithubHelp logo

neolemarc / switchcontrol Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 34 KB

Automation for some common switch types like Mikrotik and Ubiquiti

License: GNU General Public License v3.0

Python 98.02% Shell 1.98%

switchcontrol's Introduction

switchcontrol

Automation for some common switch types like Mikrotik and Ubiquiti

Configuration

Create a read-only user on your switches. Configure Create a config.yaml in your home/.config/switchcontrol/config.yaml:

auth:
    username: switchcontrol
    password: "your password"

Adapt switches.yaml to match your environment - especially the hostnames.

Usage

checkintegrity.py

This script fetches VLAN information from all switches. It then checks for all switches configured as neighbors in switches.yaml, if their respective ports have the same vlan configuration. This is actually the main reason I write that tool, because I often had some mysterious errors that resulted from missing VLANs or not matching PVIDs.

It then also checks all ports that are configured as trunk ports if they have all VLANs configured, that the script encountered when scanning the switches. You can exclude certain VLANs (e.g. management VLANs or M-LAG neighbor ports) by configuring them as "special-vlans" in switches.yaml.

The script also warns if the current-vlan list is bigger than the static vlan list - this usually means that you forgot to configured untagged vlans on some ports.

The script also displays VLAN names for each switches to help with debugging.

switchcontrol's People

Contributors

neolemarc avatar

Watchers

 avatar

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.