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
1f708e2e
Commit
1f708e2e
authored
Oct 28, 2009
by
Leigh B. Stoller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add urn() method to cons up a URN for tickets.
parent
c00529e0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
protogeni/lib/GeniTicket.pm.in
protogeni/lib/GeniTicket.pm.in
+10
-0
No files found.
protogeni/lib/GeniTicket.pm.in
View file @
1f708e2e
...
...
@@ -22,6 +22,7 @@ use GeniCredential;
use
GeniCertificate
;
use
emutil
qw
(
TBGetUniqueIndex
);
use
GeniUtil
;
use
GeniHRN
;
use
English
;
use
XML
::
Simple
;
use
XML
::
LibXML
;
...
...
@@ -200,6 +201,15 @@ sub stored($) { return field($_[0], "stored"); }
sub
slice_uuid
($)
{
return
field
($
_
[
0
],
"slice_uuid"
);
}
sub
LOCKED
($)
{
return
$
_
[
0
]->{
'LOCKED'
};
}
#
Return
the
URN
.
sub
urn
($)
{
my
($
self
)
=
@
_
;
return
GeniHRN
::
Generate
(
"@OURDOMAIN@"
,
"ticket"
,
$
self
->
idx
());
}
#
#
Stringify
for
output
.
#
...
...
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