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
ceef427b
Commit
ceef427b
authored
Apr 05, 2012
by
Leigh B Stoller
Browse files
Bug Fix: Allow search by control node IP.
parent
c0632cab
Changes
1
Hide whitespace changes
Inline
Side-by-side
www/shownodehistory.php3
View file @
ceef427b
...
...
@@ -25,6 +25,7 @@ $optargs = OptionalPageArguments("showall", PAGEARG_BOOLEAN,
"reverse"
,
PAGEARG_BOOLEAN
,
"count"
,
PAGEARG_INTEGER
,
"datetime"
,
PAGEARG_STRING
,
"IP"
,
PAGEARG_STRING
,
"node"
,
PAGEARG_NODE
);
#
...
...
@@ -44,6 +45,12 @@ if (!isset($reverse)) {
if
(
!
isset
(
$datetime
))
{
$datetime
=
""
;
}
if
(
isset
(
$IP
))
{
$node
=
Node
::
LookupByIP
(
$IP
);
if
(
!
$node
)
{
USERERROR
(
"Cannot map
$IP
to a node"
,
1
);
}
}
$node_id
=
(
isset
(
$node
)
?
$node
->
node_id
()
:
""
);
$opts
=
"node_id=
$node_id
&count=
$count
&reverse=
$reverse
"
;
...
...
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