Skip to content
GitLab
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
6a90ca88
Commit
6a90ca88
authored
May 26, 2006
by
Robert Ricci
Browse files
Fix a bug when the hosts file was in an unexpected order.
parent
e305220a
Changes
1
Hide whitespace changes
Inline
Side-by-side
pelab/monitor/gen-ip-mapping.pl
View file @
6a90ca88
...
...
@@ -17,9 +17,9 @@ open(HOSTS,"/etc/hosts") or die "Unable to open /etc/hosts: $!\n";
while
(
<
HOSTS
>
)
{
my
(
$IP
,
@names
)
=
split
/\s+/
;
my
$firstname
=
shift
@names
;
if
(
$firstname
=~
/^(.+)-(elink|elan|ecloud|elabc)/
)
{
if
(
$firstname
=~
/^(.+)-(elink|elan|ecloud|elabc)
$
/
)
{
$elabips
{
$
1
}
=
$IP
;
}
elsif
(
$firstname
=~
/^(.+)-(plink|plan|pcloud|plabc)/
)
{
}
elsif
(
$firstname
=~
/^(.+)-(plink|plan|pcloud|plabc)
$
/
)
{
$plabips
{
$
1
}
=
$IP
;
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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