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
8faa5cd3
Commit
8faa5cd3
authored
May 20, 2008
by
Leigh B. Stoller
Browse files
Add access method to get the uuid of a node.
parent
41d6856c
Changes
1
Hide whitespace changes
Inline
Side-by-side
db/Node.pm.in
View file @
8faa5cd3
...
...
@@ -100,6 +100,7 @@ sub Lookup($$)
#
accessors
sub
field
($$)
{
return
((
! ref($_[0])) ? -1 : $_[0]->{'DBROW'}->{$_[1]}); }
sub
node_id
($)
{
return
field
($
_
[
0
],
'node_id'
);
}
sub
uuid
($)
{
return
field
($
_
[
0
],
'uuid'
);
}
sub
type
($)
{
return
field
($
_
[
0
],
'type'
);
}
sub
eventstate
($)
{
return
field
($
_
[
0
],
'eventstate'
);
}
sub
jailflag
($)
{
return
field
($
_
[
0
],
'jailflag'
);
}
...
...
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