MRT format data parser
Project description
Supported MRT types
Name |
Value |
---|---|
Table_Dump |
12 |
Table_Dump_V2 |
13 |
BGP4MP |
16 |
BGP4MP_ET |
17 |
Supported BGP capabilities
Name |
Value |
---|---|
Multiprotocol Extensions for BGP-4 |
1 |
Route Refresh Capability for BGP-4 |
2 |
Outbound Route Filtering Capability |
3 |
Graceful Restart Capability |
64 |
Support for 4-octet AS number capability |
65 |
ADD-PATH Capability |
69 |
Supported BGP attributes
Name |
Value |
---|---|
ORIGIN |
1 |
AS_PATH |
2 |
NEXT_HOP |
3 |
MULTI_EXIT_DISC |
4 |
LOCAL_PREF |
5 |
ATOMIC_AGGREGATE |
6 |
AGGREGATOR |
7 |
COMMUNITY |
8 |
ORIGINATOR_ID |
9 |
CLUSTER_LIST |
10 |
MP_REACH_NLRI |
14 |
MP_UNREACH_NLRI |
15 |
EXTENDED_COMMUNITIES |
16 |
AS4_PATH |
17 |
AS4_AGGREGATOR |
18 |
AIGP |
26 |
LARGE_COMMUNITY |
32 |
ATTR_SET |
128 |
Requirements
Python2 or Python3 or PyPy or PyPy3
Installation
$ pip install mrtparse
or
$ git clone https://github.com/YoshiyukiYamauchi/mrtparse.git $ cd mrtparse $ python setup.py install running install running build running build_py running install_lib copying build/lib/mrtparse.py -> /Library/Python/2.7/site-packages byte-compiling /Library/Python/2.7/site-packages/mrtparse.py to mrtparse.pyc running install_egg_info Writing /Library/Python/2.7/site-packages/mrtparse-0.8-py2.7.egg-info
Usage
from mrtparse import *
or
import mrtparse
Programming
First, import the module.
from mrtparse import *
d = Reader(f) for m in d: <statements>
We have prepared some example scripts and sample data in “examples” and “samples” directory.
License
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
File details
Details for the file mrtparse-1.5.tar.gz
.
File metadata
- Download URL: mrtparse-1.5.tar.gz
- Upload date:
- Size: 33.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 25378951f02356f0a315664cc1eb5d4a0b974b16d7a115e1ce2148a4e99e87cb |
|
MD5 | 3d1900fba458bbaafcc14c7ea93b1e52 |
|
BLAKE2b-256 | efdc9d732c272573987187b3b355bc56235b2e0d3ef3a287f70b437f87de4e28 |