Giter Club home page Giter Club logo

bgp-dashboard-old's Introduction

BGP Dashboard

A "realtime" web view of your BGP network

  • Who do I peer with?
  • How many routes do I receive from my peers?
  • Who do I use for tranist?
  • What AS path does a prefix take out of my network?
  • How many routes and autonomous systems do I see?

How it works

Work in progress and many things are broken or changing. This is alpha code.

Read data from the output of Cisco 'show ip bgp' and 'show ipv6 unicast' commands
  • Currently a manual process running outside of the bgp-dashboard application.
  • Setup a rancid/clogin, or similar cli automation tool, reoccurring cron job to grab the data and save locally as text.
Store the data into a SQLite database
  • After the 'show ip bgp' data is saved locally, run bgp2sql.py from the scripts folder to build/update the SQLite database.
  • Again, best to automate this via a cron job at regular intervals.
Start the Flask application and view the data

Screenshots

(TODO) - Add screenshots

Requirements

Python 3.4+
dnspython3
docopt
Flask
Flask-SQLAlchemy

Install

$ git clone https://github.com/rhicks/bgp-dashboard.git
$ cd bgp-dashboard
$ pip3 install -r requirements.txt
...(TODO) - Create the database
...(TODO) - Setup cron jobs
$ python3 web/hello.py (TODO) - Change the name of the app

Development Workflow

$ git clone https://github.com/rhicks/bgp-dashboard.git
$ cd bgp-dashboard
$ [sudo] pip install virtualenv
$ [sudo] pip install virtualenvwrapper # Read virtualenvwrapper install instructions for shell integration
$ mkvirtualenv --python=`which python3` bgp-dashboard
$ workon bgp-dashboard
$ pip install -r requirements.txt

Todo

  • Use netmiko to automate the download of BGP data from routers
  • Investigate the use of BMP to trigger updates
  • Add ability to search for ASN/IP and find the next hop and full AS path
  • Add support for other router vendors
  • Add ability to monitor ASN or Prefix changes (next hop IP, next hop ASN, AS path, etc...)
  • Add alerting for monitored ASN/Prefixes (email, pager, etc...)

bgp-dashboard-old's People

Contributors

rhicks avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

sfromm willyd61

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.