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
937f1b80
Commit
937f1b80
authored
May 15, 2012
by
Leigh B Stoller
Browse files
Add image hash support.
parent
c202f96a
Changes
2
Hide whitespace changes
Inline
Side-by-side
backend/editimageid.in
View file @
937f1b80
#!/usr/bin/perl -wT
#
# EMULAB-COPYRIGHT
# Copyright (c) 2000-201
1
University of Utah and the Flux Group.
# Copyright (c) 2000-201
2
University of Utah and the Flux Group.
# All rights reserved.
#
use
English
;
...
...
@@ -140,6 +140,7 @@ my %xmlfields =
"
path
"
=>
["
path
",
$SLOT_OPTIONAL
],
"
mbr_version
",
=>
["
mbr_version
",
$SLOT_OPTIONAL
],
"
mtype_*
"
=>
["
mtype
",
$SLOT_OPTIONAL
],
"
hash
",
=>
["
hash
",
$SLOT_ADMINONLY
],
);
#
# Need a list of node types. We join this over the nodes table so that
...
...
@@ -252,7 +253,8 @@ foreach $key (keys(%{ $xmlparse->{'attribute'} })) {
}
}
if
(
!
$wild
)
{
$errors
{
$key
}
=
"
Unknown attribute
";
# Silently ignore, and delete.
delete
(
$xmlfields
{
$key
});
next
;
# foreach $key
}
}
...
...
backend/newimageid_ez.in
View file @
937f1b80
...
...
@@ -162,6 +162,7 @@ my %xmlfields =
"
global
",
=>
["
global
",
$SLOT_ADMINONLY
,
0
],
"
mbr_version
",
=>
["
mbr_version
",
$SLOT_OPTIONAL
],
"
reboot_waittime
",
=>
["
reboot_waittime
",
$SLOT_ADMINONLY
],
"
hash
",
=>
["
hash
",
$SLOT_ADMINONLY
],
);
#
...
...
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