Skip to content
GitLab
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
38542db7
Commit
38542db7
authored
Jul 05, 2016
by
Leigh B Stoller
Browse files
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
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
Supports
Markdown
0%
Try again
or
attach a new 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