GENIExperimenter/Tutorials/OpenFlowNetworkDevices: openflow-nat-fw-combo.rspec

File openflow-nat-fw-combo.rspec, 5.1 KB (added by sedwards@bbn.com, 4 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-ryu" 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<node client_id="router" exclusive="false">
65    <sliver_type name="emulab-xen">
66        <disk_image name="urn:publicid:IDN+emulab.net+image+emulab-ops:UBUNTU14-OVS2.31" />
67    </sliver_type>
68    <interface client_id="router:right">
69        <ip netmask="255.255.255.0" type="ipv4" address="10.10.11.2" />
70    </interface>
71    <interface client_id="router:switch">
72        <ip netmask="255.255.255.0" type="ipv4" address="10.10.10.2" />
73    </interface>
74</node>
75<node client_id="switch" exclusive="false">
76    <sliver_type name="emulab-xen">
77        <disk_image name="urn:publicid:IDN+emulab.net+image+emulab-ops:UBUNTU14-OVS2.31" />
78    </sliver_type>
79    <services>     
80        <install url="https://www.dropbox.com/s/di5rf7cgt84dzzd/ryu-of-setup.tar.gz" install_path="/tmp" />
81        <execute shell="bash" command="sudo bash /tmp/ryu-of-setup/switch-setup-ryu" />
82    </services>
83    <interface client_id="switch:router">
84        <ip netmask="255.255.255.0" type="ipv4" address="192.168.129.1" />
85    </interface>
86    <interface client_id="switch:left">
87        <ip netmask="255.255.255.0" type="ipv4" address="192.168.128.1" />
88    </interface>
89</node>
90<node client_id="right" exclusive="false">
91    <sliver_type name="emulab-xen">
92        <disk_image name="urn:publicid:IDN+emulab.net+image+emulab-ops:UBUNTU14-OVS2.31" />
93    </sliver_type>
94    <interface client_id="right:router">
95        <ip netmask="255.255.255.0" type="ipv4" address="10.10.11.1" />
96    </interface>
97</node>
98<node client_id="left" exclusive="false">
99    <sliver_type name="emulab-xen">
100        <disk_image name="urn:publicid:IDN+emulab.net+image+emulab-ops:UBUNTU14-OVS2.31" />
101    </sliver_type>
102    <services>
103        <install url="https://www.dropbox.com/s/di5rf7cgt84dzzd/ryu-of-setup.tar.gz" install_path="/tmp" />
104        <execute shell="bash" command="sudo bash /tmp/ryu-of-setup/left-setup" />
105    </services>
106    <interface client_id="left:switch">
107        <ip netmask="255.255.255.0" type="ipv4" address="10.10.10.1" />
108    </interface>
109</node>
110<link client_id="switch-router">
111    <interface_ref client_id="router:switch" />
112    <interface_ref client_id="switch:router" />
113</link>
114<link client_id="left-switch">
115    <interface_ref client_id="left:switch" />
116    <interface_ref client_id="switch:left" />
117</link>
118<link client_id="right-router">
119    <interface_ref client_id="right:router" />
120    <interface_ref client_id="router:right" />
121</link>
122
123</rspec>