Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cyber-sandbox-creator
Manage
Activity
Members
Labels
Plan
Issues
10
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
MUNI-KYPO-CSC
cyber-sandbox-creator
Commits
7a41e75d
Commit
7a41e75d
authored
5 years ago
by
Attila Farkas
Browse files
Options
Downloads
Patches
Plain Diff
fix constant import
parent
8e6d61fc
No related branches found
No related tags found
1 merge request
!7
Resolve Refactoring
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/border_router.py
+3
-3
3 additions, 3 deletions
modules/border_router.py
with
3 additions
and
3 deletions
modules/border_router.py
+
3
−
3
View file @
7a41e75d
import
conf.border_router
from
conf.border_router
import
*
def
_are_br_parameters_free
(
definitions
):
...
...
@@ -53,10 +53,10 @@ def create_border_router(definitions):
"""
# 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.
"
)
raise
ValueError
_create_mappings_to_border_router
(
definitions
)
definitions
[
"
routers
"
].
append
({
"
name
"
:
BORDER_ROUTER_NAME
})
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment