Commit 6cec53eb authored by Leigh B Stoller's avatar Leigh B Stoller

Add inner_elab_role() method, and a ClearOsids() function.

parent b87f8dbe
......@@ -1092,6 +1092,8 @@ sub external_resource_index($) {
return __reservation($_[0], 'external_resource_index'); }
sub external_resource_id($) {
return __reservation($_[0], 'external_resource_id'); }
sub inner_elab_role($) {
return __reservation($_[0], 'inner_elab_role'); }
#
# Lookup a specific attribute in the node_attributes table,
......@@ -2459,6 +2461,25 @@ sub GetOsids($) {
$self->{"DBROW"}{"next_boot_osid"});
}
sub ClearOsids($) {
my $self = shift;
my $node_id = $self->node_id();
DBQueryWarn("update nodes set ".
" def_boot_osid=NULL,".
" next_boot_osid=NULL,".
" temp_boot_osid=NULL ".
"where node_id='$node_id'")
or return -1;
$self->{"DBROW"}{"def_boot_osid"} = undef;
$self->{"DBROW"}{"temp_boot_osid"} = undef;
$self->{"DBROW"}{"next_boot_osid"} = undef;
return 0;
}
#
# Look for a widearea node by its external node id.
#
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment