| Total Complexity | 0 |
| Total Lines | 27 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | """Settings for the of_lldp NApp.""" |
||
| 2 | 1 | FLOW_VLAN_VID = 3799 |
|
| 3 | 1 | FLOW_PRIORITY = 50000 |
|
| 4 | 1 | POLLING_TIME = 3 |
|
| 5 | |||
| 6 | 1 | FLOW_MANAGER_URL = 'http://localhost:8181/api/kytos/flow_manager/v2' |
|
| 7 | 1 | TOPOLOGY_URL = 'http://localhost:8181/api/kytos/topology/v3' |
|
| 8 | |||
| 9 | # Link liveness hello interval is the same as POLLING_TIME |
||
| 10 | # Link liveness dead interval is POLLING_TIME * LIVENESS_DEAD_MULTIPLIER |
||
| 11 | 1 | LIVENESS_DEAD_MULTIPLIER = 5 |
|
| 12 | # Link liveness minimum number of hellos before considering liveness UP |
||
| 13 | 1 | LIVENESS_MIN_HELLOS_UP = 2 |
|
| 14 | |||
| 15 | 1 | LLDP_LOOP_ACTIONS = ["log"] # supported actions ["log", "disable"] |
|
| 16 | 1 | LLDP_IGNORED_LOOPS = {} # ignored loops per dpid {"dpid": [[1, 2]]} |
|
| 17 | # LLDP_IGNORED_LOOPS can be overwritten by switch.metadata.ignored_loops |
||
| 18 | 1 | LLDP_LOOP_DEAD_MULTIPLIER = 5 |
|
| 19 | # Loop detection dead interval is POLLING_TIME * LIVENESS_DEAD_MULTIPLIER |
||
| 20 | |||
| 21 | 1 | LOOP_LOG_EVERY = int(max(900 / max(POLLING_TIME, 1), 1)) # 5 mins by default |
|
| 22 | |||
| 23 | # Prefix this NApp has when using cookies |
||
| 24 | 1 | COOKIE_PREFIX = 0xab |
|
| 25 | |||
| 26 | TABLE_GROUP_ALLOWED = {"base"} |
||
| 27 |