Skip to content
Snippets Groups Projects
Commit 7b4da382 authored by Lluis Gifre Renom's avatar Lluis Gifre Renom
Browse files

Context component:

- Changed default values to False for config flags ALLOW_EXPLICIT_ADD_DEVICE_TO_TOPOLOGY and ALLOW_EXPLICIT_ADD_LINK_TO_TOPOLOGY
parent 82b47bf4
No related branches found
No related tags found
2 merge requests!235Release TeraFlowSDN 3.0,!180Resolve "(CTTC) Extend Context component to explicitly add devices and links to particular topologies"
......@@ -21,5 +21,6 @@ def is_enabled(setting_name : str, default_value : bool) -> bool:
str_is_enabled = str(_is_enabled).upper()
return str_is_enabled in TRUE_VALUES
ALLOW_EXPLICIT_ADD_DEVICE_TO_TOPOLOGY = is_enabled('ALLOW_EXPLICIT_ADD_DEVICE_TO_TOPOLOGY', True)
ALLOW_EXPLICIT_ADD_LINK_TO_TOPOLOGY = is_enabled('ALLOW_EXPLICIT_ADD_LINK_TO_TOPOLOGY', True)
DEFAULT_VALUE = False
ALLOW_EXPLICIT_ADD_DEVICE_TO_TOPOLOGY = is_enabled('ALLOW_EXPLICIT_ADD_DEVICE_TO_TOPOLOGY', DEFAULT_VALUE)
ALLOW_EXPLICIT_ADD_LINK_TO_TOPOLOGY = is_enabled('ALLOW_EXPLICIT_ADD_LINK_TO_TOPOLOGY', DEFAULT_VALUE)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment