Statistics
| Branch: | Revision:

iof-tools / wall2templates.py @ 63130429

History | View | Annotate | Download (1.64 KB)

1 4fcf33d9 Michele Segata
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 0218fe60 Michele Segata
  <sliver_type name="raw-pc">
21
    <disk_image name="urn:publicid:IDN+wall2.ilabt.iminds.be+image+emulab-ops:UBUNTU18-64-STD"/>
22
  </sliver_type>
23 4fcf33d9 Michele Segata
  <location xmlns="http://jfed.iminds.be/rspec/ext/jfed/1" x="%f" y="%f"/>
24 63130429 marco.nesler
  <interface client_id="%s:if0">
25
      <ip address="192.168.0.1" netmask="255.255.255.0" type="ipv4"/>
26
    </interface>
27 2e7a003b Michele Segata
  <!--hardware_type="%s"-->
28 dd91d46f Michele Segata
</node>\n"""
29 4fcf33d9 Michele Segata
30 63130429 marco.nesler
network_header = """<link client_id="link0">
31
    <component_manager name="urn:publicid:IDN+wall2.ilabt.iminds.be+authority+cm"/>
32
"""
33
network_template = """   <interface_ref client_id="%s:if0"/>\n"""
34
35
network_footer = """   <link_type name="lan"/>
36
  </link>"""