Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emulab
emulab-devel
Commits
38542db7
Commit
38542db7
authored
Jul 05, 2016
by
Leigh B Stoller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ad RoutingStyle() and DelayImage() methods to find these top level
elements in the rspec.
parent
2d1db497
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
0 deletions
+22
-0
protogeni/lib/GeniXML.pm.in
protogeni/lib/GeniXML.pm.in
+22
-0
No files found.
protogeni/lib/GeniXML.pm.in
View file @
38542db7
...
...
@@ -1186,6 +1186,28 @@ sub GetAddressPools($)
return
$
result
;
}
sub
RoutingStyle
($)
{
my
($
rspec
)
=
@
_
;
my
$
result
=
undef
;
my
$
element
=
FindNodesNS
(
"n:routing_style"
,
$
rspec
,
$
EMULAB_NS
)->
pop
();
if
(
defined
($
element
))
{
$
result
=
GetText
(
"style"
,
$
element
);
}
return
$
result
;
}
sub
DelayImage
($)
{
my
($
rspec
)
=
@
_
;
my
$
result
=
undef
;
my
$
element
=
FindNodesNS
(
"n:delay_image"
,
$
rspec
,
$
EMULAB_NS
)->
pop
();
if
(
defined
($
element
))
{
$
result
=
GetText
(
"urn"
,
$
element
);
}
return
$
result
;
}
sub
GetSharedLanName
($)
{
my
($
iface
)
=
@
_
;
...
...
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