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!
Python compatibility and development
Requires Python 3. Tested with Python 3.8 and 3.14.
For development, use a shared virtual environment and install the updated
clicol checkout and this plugin in editable mode:
python -m pip install -e /path/to/clicol -e .
python -m unittest discover -s tests -v
Editable installation registers the plugin entry points used by clicol.
Metadata
Release files for clicol-plugin-aspath 0.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| clicol_plugin_aspath-0.0.3-py3-none-any.whl | Python 3 | none | any | Details for clicol_plugin_aspath-0.0.3-py3-none-any.whl |
Release files / clicol_plugin_aspath-0.0.3-py3-none-any.whl
| Download URL | clicol_plugin_aspath-0.0.3-py3-none-any.whl |
|---|---|
| Size | 17.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
886b7cbed12dd320b41a00903029c3f9768f9accfb285631bbb4c4d62f262ca7
|
|
BLAKE2b-256 checksum How to use checksums |
bd26d153a5ad31d6c68b08948054dfdaa3859e864bfa660bb1b66144ced8c349
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.15.2
|
Security for clicol-plugin-aspath 0.0.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.