Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emulab
emulab-devel
Commits
49a9940e
Commit
49a9940e
authored
Jan 12, 2012
by
Leigh B Stoller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a routine to look up an elabinelab role.
parent
48d278b1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
1 deletion
+17
-1
tbsetup/ns2ir/tb_compat.tcl.in
tbsetup/ns2ir/tb_compat.tcl.in
+17
-1
No files found.
tbsetup/ns2ir/tb_compat.tcl.in
View file @
49a9940e
# -*- tcl -*-
#
# 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.
#
...
...
@@ -2054,6 +2054,22 @@ proc tb-set-elabinelab-role-attribute {role key value {order 0}} {
}
}
proc tb-get-elabinelab-role-attribute
{
role key
}
{
var_import ::TBCOMPAT::EINEROLE
;
var_import ::TBCOMPAT::EINEKEY
;
var_import ::TBCOMPAT::EINEVALUE
;
var_import ::TBCOMPAT::EINEORDER
;
var_import ::TBCOMPAT::elabinelab_attributes
;
set ret
{}
set i
[
lsearch -glob $elabinelab_attributes
"
$role
,
$key
,*,0"
]
if
{
$i
> -1
}
{
set values
[
split
[
lindex $elabinelab_attributes $i
]
","
]
set ret
[
lindex $values 2
]
}
return $ret
}
proc tb-unset-elabinelab-role-attribute
{
role key
}
{
var_import ::TBCOMPAT::EINEROLE
;
var_import ::TBCOMPAT::EINEKEY
;
...
...
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