Code

< 40 %
40-60 %
> 60 %
1
"""Settings for the mef_eline NApp."""
2
3
# Base URL of the Pathfinder endpoint
4 1
PATHFINDER_URL = "http://localhost:8181/api/kytos/pathfinder/v3/"
5
6
# Base URL of the Flow Manager endpoint
7 1
MANAGER_URL = "http://localhost:8181/api/kytos/flow_manager/v2"
8
9
# Base URL of the Pathfinder endpoint
10 1
TOPOLOGY_URL = "http://localhost:8181/api/kytos/topology/v3"
11
12
# Base URL of SDN trace CP
13 1
SDN_TRACE_CP_URL = "http://localhost:8181/api/amlight/sdntrace_cp/v1"
14
15
# EVC consistency interval
16 1
DEPLOY_EVCS_INTERVAL = 60
17
18
# Number of execution rounds to wait for old path to become available.
19
# i.e., it will wait up to DEPLOY_EVCS_INTERVAL*WAIT_FOR_OLD_PATH to the old
20
# path become available, otherwise mef_eline consistency will redeploy it
21 1
WAIT_FOR_OLD_PATH = 5
22
23
# Prefix this NApp has when using cookies
24 1
COOKIE_PREFIX = 0xAA
25
26
# Maximum number of paths to consider when calculating the disjoint paths
27
# i.e., the number of paths that will be requested to pathfinder to calculate
28
# the maximum disjoint paths from unwanted_path
29 1
DISJOINT_PATH_CUTOFF = 10
30
31
# Default values for EVPL and EPL respectively. They are use when sb_priority
32
# is not set in a request
33 1
EVPL_SB_PRIORITY = 20000
34 1
EPL_SB_PRIORITY = 10000
35 1
ANY_SB_PRIORITY = 15000
36 1
UNTAGGED_SB_PRIORITY = 20000
37
38
#  Time (seconds) to check if an evc has been updated
39
#  or flows have been deleted.
40 1
TIME_RECENT_DELETED_FLOWS = 60
41 1
TIME_RECENT_UPDATED = 60
42
43 1
TABLE_GROUP_ALLOWED = {'evpl', 'epl'}
44
45
# Default spf_attribute. Allowed atributes are [0,1,2,3,4,5,6,7]
46 1
QUEUE_ID = None
47
# Default spf_attribute. Allowed values: "hop", "priority", and "delay"
48 1
SPF_ATTRIBUTE = "hop"
49
50
# Time (seconds) to update EVC after interface event
51
# ".*.switch.interface.(link_up|link_down|created|deleted)"
52
UNI_STATE_CHANGE_DELAY = 0.1
53