Skip to content

CAAREN-engineering/checkmaxprefix

Repository files navigation

This script retrieves the configured max prefixes for a bgp peer on a juniper router and checks it against what is in peeringDB.

It is intended to run via cron and generate a file of Junos 'set' commands to update peers with new information from peeringDB (if there is a mismatch).

It can also be run ad hoc which will generate a table of all peers and display configured max prefixes vs peeringDB

Requirements:

  1. Juniper PyEz module
  2. router with netconf over ssh enabled
  3. user needs read privileges to the configuration
  4. a file (creds.py) which contains
    1. rtrdict (a dictionary of routers to check)**
    2. username
    3. path to the private key used to authenticate

See creds.py-EXAMPLE for the format.

** currently, this script will check only one router. It is best that the rtrdict in creds.py be a dictionary of a single router

About

Checking peeringDB for max prefixes

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages