Statistics
| Branch: | Revision:

iof-tools / wall2templates.py @ dd91d46f

History | View | Annotate | Download (1.14 KB)

1
header_template = """<?xml version='1.0'?>
2
<rspec xmlns="http://www.geni.net/resources/rspec/3" type="request" \
3
generated_by="jFed RSpec Editor" generated="2017-04-11T14:27:13.049+02:00" \
4
xmlns:emulab="http://www.protogeni.net/resources/rspec/ext/emulab/1" \
5
xmlns:delay="http://www.protogeni.net/resources/rspec/ext/delay/1" \
6
xmlns:jfed-command="http://jfed.iminds.be/rspec/ext/jfed-command/1" \
7
xmlns:client="http://www.protogeni.net/resources/rspec/ext/client/1" \
8
xmlns:jfed-ssh-keys="http://jfed.iminds.be/rspec/ext/jfed-ssh-keys/1" \
9
xmlns:jfed="http://jfed.iminds.be/rspec/ext/jfed/1" \
10
xmlns:sharedvlan="http://www.protogeni.net/resources/rspec/ext/shared-vlan/1" \
11
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" \
12
xsi:schemaLocation="http://www.geni.net/resources/rspec/3 \
13
http://www.geni.net/resources/rspec/3/request.xsd ">"""
14

    
15
footer_template = """</rspec>"""
16

    
17
node_template = """<node client_id="%s" exclusive="true" \
18
  component_manager_id="urn:publicid:IDN+wall2.ilabt.iminds.be+authority+cm" \
19
  component_id="%s">
20
  <sliver_type name="raw-pc"/>
21
  <location xmlns="http://jfed.iminds.be/rspec/ext/jfed/1" x="%f" y="%f"/>
22
</node>\n"""
23