Thanks to visit codestin.com
Credit goes to github.com

Skip to content

ym/bgptools-scripts

Repository files navigation

bgptools-scripts

This repository contains a collection of scripts that can be used to send MAC addresses to bgp.tools from your own LibreNMS deployment.

Usage

Please clone the repository and run the scripts from the cloned directory. Python >= 3.9 and poetry are required.

For the scripts to work, you need to set the following environment variables:

  • LIBRENMS_TOKEN: The API token for your LibreNMS deployment
  • LIBRENMS_URL: The URL to your LibreNMS deployment
  • BGPTOOLS_ENDPOINT: The URL to BGP.tools internal API endpoint

If you haven't created an API token yet, you find instructions on how to do so here.

git clone https://github.com/ym/bgptools-scripts.git
cd bgptools-scripts
poetry install --no-dev
LIBRENMS_URL=https://librenms.example.com/ \
LIBRENMS_TOKEN=1234567890 \
BGPTOOLS_ENDPOINT=https://bgptools.example.com/ \
poetry run ./ixpmac.py YOUR_ASN_1 YOUR_ASN_2

With Docker

docker run \
-e LIBRENMS_URL=https://librenms.example.com/ \
-e LIBRENMS_TOKEN=1234567890 \
-e BGPTOOLS_ENDPOINT=https://bgptools.example.com/ \
aveline/bgptools-ixpmac YOUR_ASN_1 YOUR_ASN_2

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published