Skip to content
Snippets Groups Projects
Commit 3cbeffda authored by Attila Farkas's avatar Attila Farkas
Browse files

handle exception if border router was not created

parent f26e3c6b
No related branches found
No related tags found
1 merge request!7Resolve Refactoring
......@@ -14,4 +14,8 @@ def preprocess(definitions, flags):
"""
""" Creating Border router """
create_border_router(definitions)
try:
create_border_router(definitions)
except Exception:
print("Could not create border router.")
raise
......@@ -51,7 +51,11 @@ def _create_mappings_to_border_router(definitions):
def create_border_router(definitions):
""" Adds the definition of border router to definitions """
"""
Adds the definition of border router to definitions.
:param definitions: device definition structure
"""
# TODO this should be later moved to input check
if not _are_br_parameters_free:
......
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