Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
emulab-devel
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
143
Issues
143
List
Boards
Labels
Service Desk
Milestones
Merge Requests
6
Merge Requests
6
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
emulab
emulab-devel
Commits
d85879d0
Commit
d85879d0
authored
Apr 04, 2016
by
Kirk Webb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
UE support: A node in the experiment can be the ADB target.
Via control network.
parent
b8a81a5d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
2 deletions
+16
-2
db/Node.pm.in
db/Node.pm.in
+16
-2
No files found.
db/Node.pm.in
View file @
d85879d0
...
...
@@ -4179,8 +4179,22 @@ sub UEConfig($) {
$
self
->
FlushReserved
();
$
experiment
->
GetVirtNodeAttribute
($
self
->
vname
(),
"adb_target"
,
\$
adb_target
);
system
(
"$TBADB -n $node_id resvport $adb_target"
)
if
($
adb_target
);
if
($
adb_target
)
{
my
$
tnode
=
$
experiment
->
VnameToNode
($
adb_target
);
if
($
tnode
)
{
my
$
c_iface
=
Interface
->
LookupControl
($
tnode
);
if
($
c_iface
&&
$
c_iface
->
IP
())
{
$
adb_target
=
$
c_iface
->
IP
();
}
else
{
print
STDERR
"*** Could not find control network interface for $tnode!
\n
"
;
return
-
1
;
}
}
if
(
system
(
"$TBADB -n $node_id resvport $adb_target"
)
!= 0) {
print
STDERR
"*** Failed to reserve ADB port for $node_id!
\n
"
;
return
-
1
;
}
}
#
Get
current
USIM
sequence
number
,
increment
and
save
,
and
add
#
as
virt_node_attribute
to
be
picked
up
and
put
in
manifest
.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment