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
162318bc
Commit
162318bc
authored
Jul 02, 2012
by
Jonathon Duerig
Browse files
Added a tag to advertisements containing available shared vlans
parent
87887e2f
Changes
1
Hide whitespace changes
Inline
Side-by-side
tbsetup/ptopgen.in
View file @
162318bc
...
...
@@ -32,6 +32,7 @@ $V_3 = "3";
$emulabns
=
"
http://www.protogeni.net/resources/rspec/ext/emulab/1
";
# XXX: This needs to be changed
$emulaburl
=
"
http://www.protogeni.net/resources/rspec/ext/emulab/1/ptop_extension.xsd
";
$sharedns
=
"
http://www.protogeni.net/resources/rspec/ext/shared-vlan/1
";
$stitchns
=
"
http://hpn.east.isi.edu/rspec/ext/stitch/0.1/
";
$stitchurl
=
"
http://hpn.east.isi.edu/rspec/ext/stitch/0.1/stitch-schema.xsd
";
...
...
@@ -2115,6 +2116,15 @@ sub print_header {
$times
[
5
]
+
1900
,
$times
[
4
]
+
1
,
$times
[
3
],
$times
[
2
],
$times
[
1
],
$times
[
0
]);
print
"
>
\n
";
my
$result
=
DBQueryFatal
("
select token from shared_vlans
"
.
"
where open=1
");
if
(
$result
->
rows
>
0
)
{
print
"
<rspec_shared_vlan xmlns=
\"
"
.
$sharedns
.
"
\"
>
\n
";
while
((
$token
)
=
$result
->
fetchrow_array
)
{
print
"
<available name=
\"
"
.
$token
.
"
\"
/>
\n
";
}
print
"
</rspec_shared_vlan>
\n
";
}
}
}
}
...
...
Write
Preview
Supports
Markdown
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