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
806c06af
Commit
806c06af
authored
Jan 09, 2016
by
Mike Hibler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Whoops, forgot the client-side of the cnet self-reporting.
parent
e53ef585
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
1 deletion
+20
-1
clientside/tmcc/freebsd/newclient
clientside/tmcc/freebsd/newclient
+20
-1
No files found.
clientside/tmcc/freebsd/newclient
View file @
806c06af
#!/usr/bin/perl -w
#
# Copyright (c) 2003-201
3
University of Utah and the Flux Group.
# Copyright (c) 2003-201
6
University of Utah and the Flux Group.
#
# {{{EMULAB-LICENSE
#
...
...
@@ -236,6 +236,22 @@ if ($client_type eq "ops") {
$type
=
"
ops
";
}
#
# See if we can identify the control net interface
#
my
$cnetiface
;
if
(
-
e
"
/var/emulab/boot/controlif
")
{
my
$cnet
=
`
cat /var/emulab/boot/controlif
`;
chomp
$cnet
;
foreach
my
$aref
(
@ifaces
)
{
my
(
$iface
,
$mac
,
$status
)
=
@$aref
;
if
(
$cnet
eq
$iface
)
{
$cnetiface
=
$cnet
;
last
;
}
}
}
#
# Start the program that will annouce us to the switch, so that it learns
# MAC addresses, etc.
...
...
@@ -315,6 +331,9 @@ sub buildURL {
$ifaceindex
++
;
}
if
(
$cnetiface
)
{
$URL
.=
"
&cnetiface=
"
.
urlencode
(
$cnetiface
);
}
$URL
.=
"
&messages=
"
.
urlencode
(
join
"",
@
::
messages
);
return
$URL
;
...
...
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