Code

< 40 %
40-60 %
> 60 %
1
"""Module with the Constants used in the amlight/telemetry."""
2
3 1
KYTOS_API = "http://0.0.0.0:8181/api"
4 1
mef_eline_api = f"{KYTOS_API}/kytos/mef_eline/v2"
5 1
flow_manager_api = f"{KYTOS_API}/kytos/flow_manager/v2"
6 1
topology_url = f"{KYTOS_API}/kytos/topology/v3"
7 1
INT_COOKIE_PREFIX = 0xA8
8 1
MEF_COOKIE_PREFIX = 0xAA
9 1
IPv4 = 2048
10 1
TCP = 6
11 1
UDP = 17
12
13 1
TABLE_GROUP_ALLOWED = {"evpl", "epl"}
14
15
# Fallback to mef_eline by removing INT flows if an external loop goes down. If
16
# the loop goes UP again and the EVC is active, it'll install INT flows
17
FALLBACK_TO_MEF_LOOP_DOWN = True
18