Commit 806c06af authored by Mike Hibler's avatar Mike Hibler

Whoops, forgot the client-side of the cnet self-reporting.

parent e53ef585
#!/usr/bin/perl -w
#
# Copyright (c) 2003-2013 University of Utah and the Flux Group.
# Copyright (c) 2003-2016 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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment