Skip to main content

CLI colorizer - aspath plugin

Project description

CLICOL PLUGIN ASPATH

Plugin for clicol which helps troubleshooting by resolving sitecodes for AS path.

Example

 Default append view:
 * i  10.0.35.48/28    10.123.123.158           0    100      0 21302 13979 65120 64932 ? ATT ABC --- EFH
 *>                    10.123.234.154                         0 21302 13979 65120 64932 ? ATT ABC --- EFH
 Or the inline view:
 * i  10.0.35.48/28    10.123.123.158           0    100      0 21302(ATT) 13979(ABC) 65120 64932(EFH) ?
 *>                    10.123.234.154                         0 21302(ATT) 13979(ABC) 65120 64932(EFH) ?

Configuration

In ~/.clicol/plugins.cfg there must be a section for the plugin.

Example with defaults:

 # AS Path resolver:
 [aspath]
 # disable until not configured
 active=no
 # view (append|inline)
 #outtype=append
 # database file default
 #dbfile=~/.clicol/plugin-aspath.db
 # what to print on unknown AS
 #unknownstr=---
 # Force dotted format for 4bytes AS numbers (no need to reconfigure router!)
 #forcedotformat=no

Format of database file: {ASNUM}\t{DESCRIPTION}\t{SITECODE}

3 columns required, more columns are ok. Column separator is TAB! Example:

21302	AT&T EAME	ATT	-	Vendor
13979	AT&T NA	ATT

Thanks to

I was using tbaschak's asdot-asplain library for 4byte AS number conversion. Thanks!

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

clicol_plugin_aspath-0.0.2.tar.gz (5.0 kB view details)

Uploaded Source

File details

Details for the file clicol_plugin_aspath-0.0.2.tar.gz.

File metadata

  • Download URL: clicol_plugin_aspath-0.0.2.tar.gz
  • Upload date:
  • Size: 5.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.6.9

File hashes

Hashes for clicol_plugin_aspath-0.0.2.tar.gz
Algorithm Hash digest
SHA256 ddf85f430825d3b5bb4da7820008d54da5df46225309dc14d70a4514615e1230
MD5 cb6bf1597b13eaaa542cbd43f3fbb97d
BLAKE2b-256 511fc5b9c56782127c43dd61b693b6c421f856b57aaee36f721b3df0685b9791

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page