| 26 | |
| 27 | == Example == |
| 28 | |
| 29 | A minimal RSpec to use for reserving resources is: |
| 30 | {{{ |
| 31 | #!xml |
| 32 | <rspec type="request" |
| 33 | xsi:schemaLocation="http://www.geni.net/resources/rspec/3 http://www.geni.net/resources/rspec/3/request.xsd" |
| 34 | xmlns:client="http://www.protogeni.net/resources/rspec/ext/client/1" |
| 35 | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 36 | xmlns="http://www.geni.net/resources/rspec/3"> |
| 37 | <node client_id="VM_pc423" component_manager_id="urn:publicid:IDN+emulab.net+authority+cm" component_id="urn:publicid:IDN+emulab.net+node+pc423" component_name="pc110" exclusive="false"> |
| 38 | <sliver_type name="emulab-xen"/> |
| 39 | <interface client_id="VM:if0"> |
| 40 | </interface> |
| 41 | </node> |
| 42 | <node client_id="VM" component_manager_id="urn:publicid:IDN+emulab.net+authority+cm" exclusive="false"> |
| 43 | <sliver_type name="emulab-openvz"/> |
| 44 | <interface client_id="VM-0:if0"> |
| 45 | </interface> |
| 46 | </node> |
| 47 | <link client_id="lan0"> |
| 48 | <component_manager name="urn:publicid:IDN+emulab.net+authority+cm"/> |
| 49 | <interface_ref client_id="VM:if0"/> |
| 50 | <interface_ref client_id="VM-0:if0"/> |
| 51 | <property source_id="VM:if0" dest_id="VM-0:if0"/> |
| 52 | <property source_id="VM-0:if0" dest_id="VM:if0"/> |
| 53 | <link_type name="lan"/> |
| 54 | </link> |
| 55 | </rspec> |
| 56 | }}} |
| 57 | |
| 58 | In the above, we have chosen a xen VM (bound to pc423) and a openVZ container to force the LAN to be non-trivial. |
| 59 | |
| 60 | |