JoeSandbox/OpenFlowNATTremaExample: openflow-nat.rspec

File openflow-nat.rspec, 2.7 KB (added by zwang@bbn.com, 5 years ago)
Line 
1<rspec type="request"
2        xsi:schemaLocation="http://www.geni.net/resources/rspec/3 http://www.geni.net/resources/rspec/3/request.xsd "
3        xmlns:flack="http://www.protogeni.net/resources/rspec/ext/flack/1"
4        xmlns:client="http://www.protogeni.net/resources/rspec/ext/client/1"
5        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
6        xmlns="http://www.geni.net/resources/rspec/3">
7  <node client_id="outside" exclusive="false">
8    <sliver_type name="emulab-xen">
9      <disk_image name="urn:publicid:IDN+instageni.nysernet.org+image+emulab-ops:UBUNTU12-64-STD"/>
10    </sliver_type>
11    <services>
12      <execute command="sudo bash /tmp/of-setup/outside-setup" shell="bash"/>
13      <install install_path="/tmp" url="http://www.gpolab.bbn.com/exp/NAT/of-setup.tar.gz"/>
14    </services>
15    <interface client_id="outside:NAT">
16      <ip address="128.128.128.2" netmask="255.255.255.0" type="ipv4"/>
17    </interface>
18    <flack:node_info x="100" y="400" unbound="true"/>
19  </node>
20  <node client_id="NAT" exclusive="false">
21    <sliver_type name="emulab-xen">
22      <disk_image name="urn:publicid:IDN+instageni.nysernet.org+image+emulab-ops:UBUNTU12-64-OVS"/>
23    </sliver_type>
24    <services>
25      <execute command="sudo bash /tmp/of-setup/switch-setup" shell="bash"/>
26      <install install_path="/tmp" url="http://www.gpolab.bbn.com/exp/NAT/of-setup.tar.gz"/>
27    </services>
28    <interface client_id="NAT:outside">
29      <ip address="128.128.128.1" netmask="255.255.255.0" type="ipv4"/>
30    </interface>
31    <interface client_id="NAT:inside">
32      <ip address="192.168.0.1" netmask="255.255.255.0" type="ipv4"/>
33    </interface>
34    <flack:node_info x="500" y="400" unbound="true"/>
35  </node>
36  <node client_id="inside1" exclusive="false">
37    <sliver_type name="emulab-xen">
38      <disk_image name="urn:publicid:IDN+instageni.nysernet.org+image+emulab-ops:UBUNTU12-64-STD"/>
39    </sliver_type>
40    <interface client_id="inside1:NAT">
41      <ip address="192.168.0.2" netmask="255.255.255.0" type="ipv4"/>
42    </interface>
43    <flack:node_info x="1000" y="200" unbound="true"/>
44  </node>
45  <node client_id="inside2" exclusive="false">
46    <sliver_type name="emulab-xen">
47      <disk_image name="urn:publicid:IDN+instageni.nysernet.org+image+emulab-ops:UBUNTU12-64-STD"/>
48    </sliver_type>
49    <interface client_id="inside2:NAT">
50      <ip address="192.168.0.3" netmask="255.255.255.0" type="ipv4"/>
51    </interface>
52    <flack:node_info x="1000" y="600" unbound="true"/>
53  </node>
54 
55  <link client_id="outside-NAT">
56    <interface_ref client_id="outside:NAT"/>
57    <interface_ref client_id="NAT:outside"/>
58  </link>
59  <link client_id="inside-NAT">
60    <interface_ref client_id="inside1:NAT"/>
61    <interface_ref client_id="NAT:inside"/>
62    <interface_ref client_id="inside2:NAT"/>
63  </link>
64</rspec>