GithubHelp home page GithubHelp logo

afenioux / peerme Goto Github PK

View Code? Open in Web Editor NEW

This project forked from cooperlees/peerme

0.0 2.0 0.0 325 KB

Tool to discover and generate possible peerings between Internet Autonomous Systems

License: BSD 2-Clause "Simplified" License

Python 100.00%

peerme's Introduction

peerme

Tool to discover and generate possible peerings between Internet Autonomous Systems

GOAL: Make Peering Great Again!

"peerme discover" gives a list of IP and IXP you have in common with a specified ASN.
"peerme generate" make the configuration from a template.

Requirements

Usage

Usage: peerme.py [OPTIONS] COMMAND [ARGS]...

  Discover and generate potential peering endpoints @ IXs

Options:
  -c, --config TEXT       Config File Location - Default: ~/.peerme.conf
  -d, --debug             Turn on verbose logging
  --refresh-data          Fetch fresh data from Internet sources (EuroIX only)
  -s, --data-source TEXT  Choose datasource to get peers from (pdbsql, pdbapi, euroix)
  -h, --help              Show this message and exit.

Commands:
  discover  All Discovered potential peerings
  generate  Generate rendered templates using the found...
  pinder    Request a right swipe or check the status of...

Examples

./peerme.py discover --help
./peerme.py generate --help

./peerme.py -s pdbsql discover -d 32934
./peerme.py -s pdbsql discover -i LINX # -i : not implemented
./peerme.py -s pdbsql generate -i LINX -t generic.template  # -i :not implemented
./peerme.py -s pdbsql generate -d 15169 -t generic.template


./peerme.py -s pdbapi discover -d 32934
./peerme.py -s pdbapi discover -i FranceIX-MRS # -i :not implemented
./peerme.py -s pdbapi generate -i AMS-IX # -i :not implemented
./peerme.py -s pdbapi generate -d 15169 -t ios.template

./peerme.py -s euroix --refresh-data
./peerme.py -s euroix discover -d 32934
./peerme.py -s euroix discover -i FranceIX-MRS
./peerme.py -s euroix discover -d 8218 -i FranceIX-PAR
./peerme.py -s euroix generate -i FranceIX-PAR -t ios-xr.template
./peerme.py -s euroix generate -d 8218 -i FranceIX-PAR -t ios.template
./peerme.py -s euroix generate -d 15169 -t junos.template

~/.peerme.conf

[peerme]
#set your ASN here
my_asn=32934
http_timeout=30

Dev Instructions

Mac OS X

  • Get Brew: http://brew.sh/
  • brew install git python3
  • pip3 install aiomysql click jinja2 aiohttp

Ubuntu >= 16.10

  • sudo apt install python3-pip git
  • pip3 install aiomysql click jinja2 aiohttp

Feedback

This tool was created @ RIPE 73 Hackathon by:

peerme's People

Contributors

cooperlees avatar jpaussa avatar afenioux avatar flokli avatar andir avatar

Watchers

James Cloos avatar  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.