-
Notifications
You must be signed in to change notification settings - Fork 1
/
settings.py
32 lines (29 loc) · 1.22 KB
/
settings.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
30
31
32
# environment
BASE_PATH = "."
VALIDATOR_PATH = BASE_PATH + "/util/cli-validator"
VALIDITY_STATE = ['Valid', 'NotFound', 'Invalid', 'InvalidAS', 'InvalidLength']
VALIDITY_DESCR = [
"At least one VRP Matches the Route Prefix",
"No VRP Covers the Route Prefix",
"At least one VRP Matches the Route Prefix, "
+ "but no VRP ASN or the Route Prefix length is greater than "
+ "the maximum length allowed by VRP(s) matching this route origin ASN",
"At least one VRP Covers the Route Prefix, "
+ "but no VRP ASN mastches the route origin ASN",
"At least one VRP Covers the Route Prefix, "
+ "but the Route Prefix length is greater than the maximum "
+ "length allowed by VRP(s) matching this route origin ASN"
]
# connections
DEFAULT_CACHE_SERVER = {"host": "rpki-validator.realmv6.org", "port": 8282}
DEFAULT_BGPMON_SERVER = {"host": "localhost", "uport": 50001, "rport": 50002}
DEFAULT_BGPSTREAM_COLLECTOR = "route-views.linx"
DEFAULT_MONGO_DATABASE = {"uri": "mongodb://localhost:27017/rpki-read"}
DEFAULT_WEB_SERVER = {"host": "0.0.0.0", "port": 5100}
DEFAULT_LOG_LEVEL = "CRITICAL"
BULK_MAX_OPS = 10000
BULK_TIMEOUT = 30
RIB_TS_INTERVAL = 7200
SERVICE_INTERVAL = 600
DOSTATS_INTERVAL = 600
MAX_COUNTER = 10000