Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
testbed
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
Michael Alan Marsh
testbed
Commits
08efa405
Commit
08efa405
authored
7 years ago
by
Michael Marsh
Browse files
Options
Downloads
Patches
Plain Diff
sane device naming
parent
fdd31b83
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
start_testbed.py
+2
-2
2 additions, 2 deletions
start_testbed.py
with
2 additions
and
2 deletions
start_testbed.py
+
2
−
2
View file @
08efa405
...
@@ -47,8 +47,8 @@ def connect_nodes(node1, node2):
...
@@ -47,8 +47,8 @@ def connect_nodes(node1, node2):
ctr2
=
nodelist
[
node2
]
ctr2
=
nodelist
[
node2
]
print
ctr1
,
ctr2
print
ctr1
,
ctr2
# Create a virtual ethernet link.
# Create a virtual ethernet link.
dev_1
=
'
bac0
_{n1}_{n2}
'
.
format
(
n1
=
node1
,
n2
=
node2
)
dev_1
=
'
{name}
_{n1}_{n2}
'
.
format
(
name
=
ntwk
[
'
name
'
],
n1
=
node1
,
n2
=
node2
)
dev_2
=
'
bac0
_{n2}_{n1}
'
.
format
(
n1
=
node1
,
n2
=
node2
)
dev_2
=
'
{name}
_{n2}_{n1}
'
.
format
(
name
=
ntwk
[
'
name
'
],
n1
=
node1
,
n2
=
node2
)
subprocess
.
call
([
subprocess
.
call
([
'
sudo
'
,
'
sudo
'
,
'
ip
'
,
'
link
'
,
'
add
'
,
dev_1
,
'
type
'
,
'
veth
'
,
'
ip
'
,
'
link
'
,
'
add
'
,
dev_1
,
'
type
'
,
'
veth
'
,
...
...
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