1 | <?xml version="1.0" encoding="UTF-8"?> |
---|
2 | <!-- |
---|
3 | An extension for specifying storage resources to reserve or already reserved within an RSpec. |
---|
4 | Based on http://geni-orca.renci.org/owl/storage.owl |
---|
5 | Storage is just a different kind of node. It uses a 'storage' sliver_type. |
---|
6 | A storage node has a client_id, component_manager_id, sliver_id like a normal node. |
---|
7 | It gets a component_id like a normal node as well. |
---|
8 | A storage node has interfaces as well. |
---|
9 | If the node connects via a shared VLAN, then it has a single interface on that VLAN. |
---|
10 | If the node connects via a dedicated VLAN, then it may have multiple interfaces. |
---|
11 | Hosted here: http://www.geni.net/resources/rspec/ext/storage/1/storage.xsd |
---|
12 | --> |
---|
13 | <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" |
---|
14 | elementFormDefault="qualified" |
---|
15 | targetNamespace="http://groups.geni.net/exogeni/attachment/wiki/RspecExtensions/storage/1" |
---|
16 | xmlns:storage="http://groups.geni.net/exogeni/attachment/wiki/RspecExtensions/storage/1"> |
---|
17 | <!-- |
---|
18 | This is meant to extend the sliver_type element when its value is "storage" |
---|
19 | This may be used in request or manifest RSpecs |
---|
20 | --> |
---|
21 | <xs:element name="storage"> |
---|
22 | <xs:complexType> |
---|
23 | <!-- resource_type should be 'LUN' (aka iSCSI). Maybe 'NFS' in future --> |
---|
24 | <xs:attribute name="resource_type" use="required" type="xs:string"/> |
---|
25 | <!-- do_format is a boolean: should the VM format the storage --> |
---|
26 | <xs:attribute name="do_format" use="required" type="xs:boolean"/> |
---|
27 | <!-- fs_param is a string of arguments to mkfs. EG for an ext filesystem you need "-F -b <block size" --> |
---|
28 | <xs:attribute name="fs_param" use="required" type="xs:string"/> |
---|
29 | <!-- fs_type is a string of arguments to mkfs, as in mkfs -t XXXX --> |
---|
30 | <xs:attribute name="fs_type" use="required" type="xs:string"/> |
---|
31 | <!-- mnt_point: Where to mount the storage in the VM --> |
---|
32 | <xs:attribute name="mnt_point" use="required" type="xs:string"/> |
---|
33 | <!-- Capacity is in GB; Reservable in fixed quanta usually --> |
---|
34 | <xs:attribute name="capacity" use="required" type="xs:integer"/> |
---|
35 | <!-- Connection type - shared VLAN or dedicated or either --> |
---|
36 | <xs:attribute name="connection" type="xs:string"/> |
---|
37 | </xs:complexType> |
---|
38 | </xs:element> |
---|
39 | </xs:schema> |
---|