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-devel
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
143
Issues
143
List
Boards
Labels
Service Desk
Milestones
Merge Requests
6
Merge Requests
6
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
emulab
emulab-devel
Commits
19582197
Commit
19582197
authored
Sep 25, 2007
by
Mike Hibler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix obscure elabinelab newnode problem where MAC address was being typed
as a double by the RPC::XML library.
parent
b4f443e7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
utils/newnode.in
utils/newnode.in
+9
-1
No files found.
utils/newnode.in
View file @
19582197
...
...
@@ -320,8 +320,16 @@ NODE: foreach my $node_id (@node_ids) {
"
cert
"
=>
$RPCCERT
,
"
portnum
"
=>
$RPCPORT
});
#
# XXX force MAC to a string since simple XML parser may otherwise
# think it is an int (i.e., all digits) or even a double (i.e.,
# all digits with an 'e' in the middle). Don't laugh, I spent a
# lot of time figuring this out when it really happened!
#
my
$macstr
=
RPC::XML::
string
->
new
(
$interfaces
{
0
}[
0
]);
my
$rval
=
libxmlrpc::
CallMethod
("
elabinelab
",
"
newnode_info
",
{"
mac
"
=>
$
interfaces
{
0
}[
0
]
});
{"
mac
"
=>
$
macstr
});
if
(
!
defined
(
$rval
))
{
print
"
XMPRPC server did not return control iface info!
\n
";
...
...
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