Prefix-list Agent for Arista EOS
Periodically retrieve data from the IRR and build prefix-list objects on EOS.
Overview
The PrefixListAgent is an EOS SDK based agent that runs under ProcMrg on an
Arista EOS based device or VM.
The agent maintains up-to-date prefix-list policy objects for use in EOS routing policy configurations, based on data in the IRR.
The agent will periodically check the running configuration of the device to gather a list of prefix-lists that it is responsible for maintaining. It will then retrieve the required data from the IRR via an RPTK web service, and update the prefix-lists without calling the EOS config parser.
Installation
From RPM (recommended)
Install the agent as an EOS extension:
ar#copy https://github.com/wolcomm/eos-prefix-list-agent/releases/download/0.1.0a8/prefix_list_agent-0.1.0a8-1.noarch.rpm extension:
ar#extension prefix_list_agent-0.1.0a8-1.noarch.rpm
ar#sh extensions
Name Version/Release Status Extension
----------------------------------------- ------------------ --------- ---------
prefix_list_agent-0.1.0a8-1.noarch.rpm 0.1.0a8/1 A, I 1
A: available | NA: not available | I: installed | NI: not installed | F: forced
Persist the extension to be installed on boot:
ar#copy installed-extensions boot-extensions
Copy completed successfully.
ar#sh boot-extensions
prefix_list_agent-0.1.0a8-1.noarch.rpm
Using pip
This method is not recommended unless you know what you are doing. Without additional configuration, the installation will not persist across reloads.
Drop to the shell:
ar#bash
Install from PyPI:
$ sudo pip install prefix-list-agent
Agent Configuration
Daemon
Configure the agent as an EOS "daemon":
ar#conf t
ar(config)#daemon PrefixListAgent
ar(config-daemon-PrefixListAgent)#exec /usr/bin/PrefixListAgent
Tracing
Enable tracing using the EOS agent tracing infrastructure, e.g.:
ar(config)#trace PrefixListAgent-PrefixListAgent setting PrefixList*/0-6
Set Configuration Options
Set configuration options using the command:
ar(config-daemon-PrefixListAgent)#option <option-name> value <option-value>
Available configuration options are:
-
rptk_endpoint(default:None, required):The RPTK web service endpoint to connect to when retrieving prefix-list data.
-
source_dir(default:/tmp/prefix-lists):The local directory to write prefix-list files to.
-
refresh_interval(default:3600):The interval between prefix-list updates.
Start the Agent
ar(config-daemon-PrefixListAgent)#no shutdown
Prefix-List Configuration
The PrefixListAgent will check the running configuration for source-based prefix-lists matching the form:
ip[v6] prefix-list ${irr_object} source file:${source_dir}/${policy}/${file_name}
Where:
${irr_object}: The IRR object (aut-numoras-set) to build the prefix-list from.${source_dir}: The configuredsource_dir, as above.${policy}: The resolution policy to use when resolving the IRR object to a prefix-list. Must be a valid policy available on the RPTK web service. You can check the available policies with:
$ curl -q ${rptk_endpoint}/policies | jq
${file_name}: The file to write the resulting prefix-list data to. This name should be unique per resolution policy.
After the next update, you should be able to see the entries with:
ar#show ip[v6] prefix-list ${irr_object} detail
Metadata
Release files for prefix-list-agent 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| prefix_list_agent-0.1.1.tar.gz | 13.0 kB | Without provenance | Details for prefix_list_agent-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| prefix_list_agent-0.1.1-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for prefix_list_agent-0.1.1-py2.py3-none-any.whl |
Total release size: 28.5 kB
Release files / prefix_list_agent-0.1.1.tar.gz
| Download URL | prefix_list_agent-0.1.1.tar.gz |
|---|---|
| Size | 13.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5751cf9ca0c6602dd08cfe612fcf93964bdf0eee8e5932e78b55d4eb925c2a7b
|
|
BLAKE2b-256 checksum How to use checksums |
1052389017e7ea8edb5ce2469552c18b7b8465f6c08dae4492d0c036a119139f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.38.0 CPython/2.7.15
|
Release files / prefix_list_agent-0.1.1-py2.py3-none-any.whl
| Download URL | prefix_list_agent-0.1.1-py2.py3-none-any.whl |
|---|---|
| Size | 15.5 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
dd81fef4b61aeeab180c6d20bb011ac7e0ec5c2ed2f7fddca2307dcd86d947c8
|
|
BLAKE2b-256 checksum How to use checksums |
9af45ad151b210d4450b96dc1f010eef08d9dba8dbb625cad243a4195a97e362
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.38.0 CPython/2.7.15
|
Security for prefix-list-agent 0.1.1
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.