Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-devel
Commits
f00b2176
Commit
f00b2176
authored
May 03, 2012
by
Leigh B Stoller
Browse files
Give management ports a hostname so that we know what it is
in the conf file.
parent
31f0a420
Changes
1
Hide whitespace changes
Inline
Side-by-side
db/dhcpd_makeconf.in
View file @
f00b2176
...
...
@@ -253,16 +253,19 @@ while (<IF>) {
my
$booting
=
"";
my
$filename
=
"";
# Management ports, nothing special to do.
goto
spit
if
(
$role
eq
TBDB_IFACEROLE_MANAGEMENT
());
if
(
$vnames
&&
defined
(
$row
{"
vname
"}))
{
$node_id
=
$row
{"
vname
"};
}
else
{
$node_id
=
$row
{"
node_id
"};
}
# Management ports, nothing special to do.
if
(
$role
eq
TBDB_IFACEROLE_MANAGEMENT
())
{
$hostname
=
"
${spaces}
\t
option host-name
\"
${node_id}
-mng
\"
;
\n
";
goto
spit
;
}
my
$tag
;
if
(
defined
(
$row
{"
pid
"}))
{
...
...
Write
Preview
Supports
Markdown
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