-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathconfig.py
29 lines (24 loc) · 1.31 KB
/
config.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
import appdirs
RPKI_ARCHIVE_URLS = [
'https://ftp.ripe.net/ripe/rpki/afrinic.tal/{year:04d}/{month:02d}/{day:02d}/roas.csv',
'https://ftp.ripe.net/ripe/rpki/apnic.tal/{year:04d}/{month:02d}/{day:02d}/roas.csv',
'https://ftp.ripe.net/ripe/rpki/arin.tal/{year:04d}/{month:02d}/{day:02d}/roas.csv',
'https://ftp.ripe.net/ripe/rpki/lacnic.tal/{year:04d}/{month:02d}/{day:02d}/roas.csv',
'https://ftp.ripe.net/ripe/rpki/ripencc.tal/{year:04d}/{month:02d}/{day:02d}/roas.csv',
]
DEFAULT_RPKI_URLS = [
'https://rpki.gin.ntt.net/api/export.json'
]
CACHE_DIR = appdirs.user_cache_dir('rov', 'IHR')
DEFAULT_RPKI_DIR = CACHE_DIR+'/db/rpki/'
RPKI_FNAME = '*.*'
TMP_DIR = 'tmp/'
OUTPUT_DIR = 'data/'
ROA_GET_URL = 'http://45.129.227.23:5000/search?prefix='
RIB_SOURCE_URL = 'http://archive.routeviews.org/route-views.bdix/bgpdata/{0}.{1}/RIBS/rib.{0}{1}{2}.0000.bz2'
OUTPUT_FILE = 'data/{}.csv'
R1 = range(64496-65551)
R2 = range(4200000000-4294967295)
RV_COLLECTOR = {'arin' : 'route-views2', 'apnic' : 'route-views.sg', 'lacnic': 'route-views.saopaulo', 'afrinic' : 'route-views.jinx', 'ripencc' : 'route-views.amsix'}
RIS_COLLECTOR = {'arin' : 'rrc11', 'apnic' : 'rrc23', 'lacnic': 'rrc15', 'afrinic' : 'rrc19', 'ripencc' : 'rrc00'}
API_ENDPOINT = "http://127.0.0.1:8001/search?"