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-stable
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
emulab
emulab-stable
Commits
3116cefc
Commit
3116cefc
authored
Jun 18, 2010
by
Leigh B Stoller
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of git-public.flux.utah.edu:/flux/git/emulab-devel
parents
11e4929c
387183b5
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
16 deletions
+9
-16
tmcd/linux/libvnode.pm
tmcd/linux/libvnode.pm
+3
-6
tmcd/linux/mkvnode.pl
tmcd/linux/mkvnode.pl
+3
-5
tmcd/linux/vnodectl
tmcd/linux/vnodectl
+3
-5
No files found.
tmcd/linux/libvnode.pm
View file @
3116cefc
#!/usr/bin/perl -wT
#
# EMULAB-COPYRIGHT
# Copyright (c) 2008-20
09
University of Utah and the Flux Group.
# Copyright (c) 2008-20
10
University of Utah and the Flux Group.
# All rights reserved.
#
# Implements the libvnode API for OpenVZ support in Emulab.
...
...
@@ -40,8 +40,6 @@ my $VCNET_NET = "172.16.0.0";
my
$VCNET_MASK
=
"
255.240.0.0
";
my
$VCNET_GW
=
"
172.16.0.1
";
my
$BOSS_IP_FILE
=
"
/var/emulab/boot/bossip
";
my
$debug
=
0
;
sub
mysystem
($);
...
...
@@ -427,12 +425,11 @@ sub findDNS($)
{
my
(
$ip
)
=
@_
;
my
$bossip
=
(
-
r
$BOSS_IP_FILE
)
?
`
cat
$BOSS_IP_FILE
`
:
"
0
";
chomp
(
$bossip
);
my
(
$bossname
,
$bossip
)
=
libtmcc::
tmccbossinfo
();
if
(
$bossip
=~
/^(\d+\.\d+\.\d+\.\d+)$/
)
{
$bossip
=
$
1
;
}
else
{
die
"
Could not find boss IP address (
no
$BOSS_IP_FILE
?)
";
die
"
Could not find boss IP address (
tmccbossinfo failed
?)
";
}
return
$bossip
;
...
...
tmcd/linux/mkvnode.pl
View file @
3116cefc
#!/usr/bin/perl -w
#
# EMULAB-COPYRIGHT
# Copyright (c) 2009 University of Utah and the Flux Group.
# Copyright (c) 2009
-2010
University of Utah and the Flux Group.
# All rights reserved.
#
use
strict
;
...
...
@@ -137,7 +137,7 @@ if ($debug) {
# Need the domain, but no conistent way to do it. Ask tmcc for the
# boss node and parse out the domain.
#
my
$DOMAINNAME
=
tmccbossname
();
my
(
$DOMAINNAME
,
$BOSSIP
)
=
tmccbossinfo
();
die
("
Could not get bossname from tmcc!
")
if
(
!
defined
(
$DOMAINNAME
));
...
...
@@ -149,10 +149,8 @@ else {
}
#
# Need the bossip, which w
e get from virthost emulab boot dir:
# Need the bossip, which w
as returned above
#
my
$BOSSIP
=
`
cat
$BOOTDIR
/bossip
`;
chomp
(
$BOSSIP
);
if
(
$BOSSIP
!~
/^\d+\.\d+\.\d+\.\d+$/
)
{
die
"
Bad bossip '
$BOSSIP
' in
$BOOTDIR
/bossip!
";
}
...
...
tmcd/linux/vnodectl
View file @
3116cefc
#!/usr/bin/perl -wT
#
# EMULAB-COPYRIGHT
# Copyright (c) 2009 University of Utah and the Flux Group.
# Copyright (c) 2009
-2010
University of Utah and the Flux Group.
# All rights reserved.
#
...
...
@@ -285,7 +285,7 @@ if ($debug) {
# Need the domain, but no conistent way to do it. Ask tmcc for the
# boss node and parse out the domain.
#
my
$DOMAINNAME
=
tmccbossname
();
my
(
$DOMAINNAME
,
$BOSSIP
)
=
tmccbossinfo
();
die
("
Could not get bossname from tmcc!
")
if
(
!
defined
(
$DOMAINNAME
));
...
...
@@ -297,10 +297,8 @@ else {
}
#
# Need the bossip, which w
e get from virthost emulab boot dir:
# Need the bossip, which w
as returned above.
#
my
$BOSSIP
=
`
cat
$BOOTDIR
/bossip
`;
chomp
(
$BOSSIP
);
if
(
$BOSSIP
!~
/^\d+\.\d+\.\d+\.\d+$/
)
{
die
"
Bad bossip '
$BOSSIP
' in
$BOOTDIR
/bossip!
";
}
...
...
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