| | 108 | |
|---|
| | 109 | ---- |
|---|
| | 110 | == Manifest Examples == |
|---|
| | 111 | |
|---|
| | 112 | {{{ |
|---|
| | 113 | <?xml version="1.0" encoding="UTF-8"?> |
|---|
| | 114 | <rspec xmlns="http://www.protogeni.net/resources/rspec/2" |
|---|
| | 115 | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
|---|
| | 116 | xsi:schemaLocation="http://www.protogeni.net/resources/rspec/2 http://www.protogeni.net/resources/rspec/2/request.xsd" |
|---|
| | 117 | type="request" > |
|---|
| | 118 | <!-- Manifests have completely specified component_ids to let you know which |
|---|
| | 119 | component you actually got --> |
|---|
| | 120 | <!-- Each individual node has its own sliver_id which allows you to restart |
|---|
| | 121 | or lookup each one individually using the xmlrpc interface --> |
|---|
| | 122 | <node client_id="left" |
|---|
| | 123 | exclusive="true" |
|---|
| | 124 | component_id="urn:publicid:IDN+emulab.net+node+pc17" |
|---|
| | 125 | sliver_id="urn:publicid:IDN+emulab.net+sliver+8673"> |
|---|
| | 126 | <!-- The services tell you what the component manager has set up for you. |
|---|
| | 127 | Here, the CM has set up an ssh server using the keys you passed into |
|---|
| | 128 | RedeemTicket or CreateSliver using a particular hostname and port --> |
|---|
| | 129 | <services> |
|---|
| | 130 | <login authentication="ssh-keys" hostname="pc17.emulab.net" port="22" /> |
|---|
| | 131 | </services> |
|---|
| | 132 | <sliver_type name="raw-pc"> |
|---|
| | 133 | <!-- We are currently implementing disk image selection and notification. |
|---|
| | 134 | The CM will give you details about what image was loaded on the node --> |
|---|
| | 135 | <disk_image |
|---|
| | 136 | name="urn:publicid:IDN+emulab.net+image+emulab-ops/FBSD61-STD" |
|---|
| | 137 | os="FBSD" version="6.1" |
|---|
| | 138 | description="Standard freebsd 6.1 image" /> |
|---|
| | 139 | </sliver_type> |
|---|
| | 140 | <!-- The CM binds every interface as well as giving the MAC address of |
|---|
| | 141 | that interface --> |
|---|
| | 142 | <interface client_id="left:if0" |
|---|
| | 143 | component_id="urn:publicid:IDN+emulab.net+interface+pc17:eth1" |
|---|
| | 144 | mac_address="13:11:22:33:44:55" /> |
|---|
| | 145 | </node> |
|---|
| | 146 | <node client_id="right" |
|---|
| | 147 | exclusive="true" |
|---|
| | 148 | component_id="urn:publicid:IDN+emulab.net+node+pc18" |
|---|
| | 149 | sliver_id="urn:publicid:IDN+emulab.net+sliver+8674"> |
|---|
| | 150 | <services> |
|---|
| | 151 | <login authentication="ssh-keys" hostname="pc18.emulab.net" port="22" /> |
|---|
| | 152 | </services> |
|---|
| | 153 | <sliver_type name="raw-pc"> |
|---|
| | 154 | <disk_image |
|---|
| | 155 | name="urn:publicid:IDN+emulab.net+image+emulab-ops/FBSD61-STD" |
|---|
| | 156 | os="FBSD" version="6.1" |
|---|
| | 157 | description="Standard freebsd 6.1 image" /> |
|---|
| | 158 | </sliver_type> |
|---|
| | 159 | <interface client_id="right:if0" |
|---|
| | 160 | component_id="urn:publicid:IDN+emulab.net+interface+pc18:eth2" |
|---|
| | 161 | mac_address="00:11:22:33:44:55" /> |
|---|
| | 162 | </node> |
|---|
| | 163 | <!-- Links also get sliver_ids --> |
|---|
| | 164 | <link client_id="center" sliver_id="urn:publicid:IDN+emulab.net+sliver+8675"> |
|---|
| | 165 | <interface_ref client_id="left:if0" /> |
|---|
| | 166 | <interface_ref client_id="right:if0" /> |
|---|
| | 167 | <!-- Link properties are specified so you know what network characteristics |
|---|
| | 168 | to expect. Of course, this only applies to dedicated links --> |
|---|
| | 169 | <property source_id="left:if0" dest_id="right:if0" capacity="100000" |
|---|
| | 170 | latency="1" packet_loss="0.0" /> |
|---|
| | 171 | <property source_id="right:if0" dest_id="left:if0" capacity="100000" |
|---|
| | 172 | latency="1" packet_loss="0.0" /> |
|---|
| | 173 | </link> |
|---|
| | 174 | </rspec> |
|---|
| | 175 | }}} |