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

fix constant import

parent 8e6d61fc
No related branches found
No related tags found
1 merge request!7Resolve Refactoring
import conf.border_router from conf.border_router import *
def _are_br_parameters_free(definitions): def _are_br_parameters_free(definitions):
...@@ -53,10 +53,10 @@ def create_border_router(definitions): ...@@ -53,10 +53,10 @@ def create_border_router(definitions):
""" """
# TODO this should be later moved to input check # TODO this should be later moved to input check
if not _are_br_parameters_free: if not _are_br_parameters_free(definitions):
print("Error: A device with the same name as border router already exists.") print("Error: A device with the same name as border router already exists.")
raise ValueError raise ValueError
_create_mappings_to_border_router(definitions) _create_mappings_to_border_router(definitions)
definitions["routers"].append({"name":BORDER_ROUTER_NAME }) definitions["routers"].append({"name":BORDER_ROUTER_NAME })
......
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