187 | | '''RSpec Example for Site 1 !OpenFlow Aggregate Manager''' |
188 | | {{{ |
189 | | #!xml |
190 | | <resv_rspec type="openflow"> |
191 | | <user affiliation="GPO" email="help@geni.net" firstname="GPO" lastname="Ops" password="xxxxxxx"/> |
192 | | <project description="Project description" name=" Project name"/> |
193 | | <slice controller_url="tcp:controller.site1.com:9933" description="description" name="name"/> |
194 | | <flowspace> |
195 | | <switch urn="urn:publicid:IDN+ofam1.site1.com:expedient:openflow+switch:044:d0:02:6f:13:f3:b0:0"/> |
196 | | <tp_dst from="9080" to="9082"/> |
197 | | </flowspace> |
198 | | <flowspace> |
199 | | <switch urn="urn:publicid:IDN+ofam1.site1.com:expedient:openflow+switch:044:d0:02:6f:13:f3:b0:0"/> |
200 | | <tp_src from="9080" to="9082"/> |
201 | | </flowspace> |
202 | | </resv_rspec> |
203 | | }}} |
204 | | |
205 | | '''RSpec Example for Site 2 !OpenFlow Aggregate Manager''' |
206 | | {{{ |
207 | | #!xml |
208 | | <resv_rspec type="openflow"> |
209 | | <user affiliation="GPO" email="help@geni.net" firstname="GPO" lastname="Ops" password="xxxxxxx"/> |
210 | | <project description="Project description" name=" Project name"/> |
211 | | <slice controller_url="tcp:controller.site1.com:9933" description="description" name="name"/> |
212 | | <flowspace> |
213 | | <switch urn="urn:publicid:IDN+ofam2.site2.com:expedient:openflow+switch:00:00:00:13:65:f4:21:4f"/> |
214 | | <tp_dst from="9080" to="9082"/> |
215 | | </flowspace> |
216 | | <flowspace> |
217 | | <switch urn="urn:publicid:IDN+ofam2.site2.com:expedient:openflow+switch:00:00:00:13:65:f4:21:4f"/> |
218 | | <tp_src from="9080" to="9082"/> |
219 | | </flowspace> |
220 | | </resv_rspec> |
221 | | }}} |
222 | | |
223 | | '''RSpec Example for Site 3 !OpenFlow Aggregate Manager''' |
224 | | {{{ |
225 | | #!xml |
226 | | <resv_rspec type="openflow"> |
227 | | <user affiliation="GPO" email="help@geni.net" firstname="GPO" lastname="Ops" password="xxxxxxx"/> |
228 | | <project description="Project description" name=" Project name"/> |
229 | | <slice controller_url="tcp:controller.site1.com:9933" description="description" name="name"/> |
230 | | <flowspace> |
231 | | <switch urn="urn:publicid:IDN+ofam3.site3.com:expedient:openflow+switch:00:00:00:21:6f:b8:f3:d0"/> |
232 | | <tp_dst from="9080" to="9082"/> |
233 | | </flowspace> |
234 | | <flowspace> |
235 | | <switch urn="urn:publicid:IDN+ofam3.site3.com:expedient:openflow+switch:00:00:00:21:6f:b8:f3:d0"/> |
236 | | <tp_src from="9080" to="9082"/> |
237 | | </flowspace> |
238 | | </resv_rspec> |
239 | | }}} |
240 | | |
| 186 | '''BBN OpenFlow Network Resources RSpec ''' |
| 187 | {{{ |
| 188 | #!xml |
| 189 | }}} |
| 190 | |
| 191 | '''Clemson OpenFlow Network Resources RSpec ''' |
| 192 | {{{ |
| 193 | #!xml |
| 194 | }}} |
| 195 | |
| 196 | '''Wisconsin OpenFlow Network Resources RSpec ''' |
| 197 | {{{ |
| 198 | #!xml |
| 199 | |
| 200 | }}} |
| 201 | |
| 202 | '''NLR OpenFlow Network Resources RSpec ''' |
| 203 | {{{ |
| 204 | #!xml |
| 205 | |
| 206 | }}} |
244 | | Using the RSpec that defines the required OF flowspace, you can now request OF resources with Omni. First create a slice using your GPO Clearinghouse credentials as defined in the omni_config. Note that the slice name should be meaningful to you: |
245 | | {{{ |
246 | | $ ./src/omni.py createslice ln_OF_slice |
247 | | INFO:omni:Loading config file omni_config |
248 | | INFO:omni:Using control framework pgeni |
249 | | INFO:omni:Created slice with Name ln_OF_slice, URN urn:publicid:IDN+pgeni.gpolab.bbn.com+slice+ln_OF_slice, Expiration 2011-06-16 19:46:49 |
250 | | INFO:omni: ------------------------------------------------------------ |
251 | | INFO:omni: Completed createslice: |
252 | | |
253 | | Options as run: |
254 | | configfile: omni_config |
255 | | framework: pgeni |
256 | | native: True |
257 | | |
258 | | Args: createslice ln_OF_slice |
259 | | |
260 | | Result Summary: Created slice with Name ln_OF_slice, URN urn:publicid:IDN+pgeni.gpolab.bbn.com+slice+ln_OF_slice, Expiration 2011-06-16 19:46:49 |
261 | | |
262 | | INFO:omni: ============================================================ |
263 | | }}} |
264 | | |
265 | | Then create a sliver for each resource aggregate. In this example there are 3 OF aggregates (one per site) and 3 compute resource aggregates (1 PG & 2 MyPLC), which maps to creating 6 slivers, and the following commands are executed: |
266 | | {{{ |
267 | | $ ./src/omni.py -a https://ofam1.site1.com:1443/openflow/gapi/ -o createsliver ln_OF_slice OF-site1.txt.rspec |
268 | | $ ./src/omni.py -a https://ofam2.site2.com:1443/openflow/gapi/ -o createsliver ln_OF_slice OF-site2.rspec |
269 | | $ ./src/omni.py -a https://ofam3.site3.com:1443/openflow/gapi/ -o createsliver ln_OF_slice OF-site3.rspec |
270 | | $ ./src/omni.py -a https://www.emulab.net/protogeni/xmlrpc/am -o createsliver ln_OF_slice emulab-site2.rspec |
271 | | $ ./src/omni.py -a http://myplc.site1.com:12346 -o createsliver ln_OF_slice myplc-site1.rspec |
272 | | $ ./src/omni.py -a http://myplc.site3.com:12346 -o createsliver ln_OF_slice myplc-site3.rspec |
273 | | }}} |
274 | | |
275 | | ^^ Note: Examples that detailed rspec creation examples for the PG and MyPLC resource aggregates can be found in the other non-OF [wiki:GENIExperimenter/ExperimentExample experiment] example. ^^ |
| 210 | Using the RSpecs that define the required OF flowspace, you can now request OF resources with Omni. First create a slice using your GPO Clearinghouse credentials as defined in the omni_config. Note that the slice name should be meaningful to you and then create a sliver for each resource aggregate. In this example there are 4 OF aggregates (one per site plus one for the GENI core) and 3 compute resource aggregates (1 PG & 2 MyPLC), which maps to creating 7 slivers, and the following commands are executed: |
| 211 | {{{ |
| 212 | ./src/omni.py createslice 3sites-OF-Exp |
| 213 | ./src/omni.py -a https://foam.gpolab.bbn.com:3626/foam/gapi/1 createsliver 3sites-OF-Exp foam_bbn.rspec |
| 214 | ./src/omni.py -a https://foam.noc.iu.edu:3626/foam/gapi/1 createsliver 3sites-OF-Exp foam_indiana.rspec |
| 215 | ./src/omni.py -a https://foam.net.internet2.edu:3626/foam/gapi/1 createsliver 3sites-OF-Exp foam_internet2.rspec |
| 216 | ./src/omni.py -a https://foam.nlr.net:3626/foam/gapi/1 createsliver 3sites-OF-Exp foam_nlr.rspec |
| 217 | ./src/omni.py -a http://myplc.clemson.edu:12346/ sliverstatus 3sites-OF-Exp myplc-clemson.rspec |
| 218 | ./src/omni.py -a https://wings-openflow-1.wail.wisc.edu:12346/ createsliver 3sites-OF-Exp myplc-wisc.rspec |
| 219 | ./src/omni.py -a https://pgeni.gpolab.bbn.com/protogeni/xmlrpc/am createsliver 3sites-OF-Exp pg-bbn.rpsec |
| 220 | |
| 221 | }}} |
| 222 | |