RspecExtensions/storage/1: storage-ad.xsd

File storage-ad.xsd, 1.6 KB (added by nriga@bbn.com, 10 years ago)
Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<!--
3  An extension for specifying storage resources available in an Ad 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 in an Ad has a component_manager_id, component_id like a normal node.
7  If the node connects via a shared VLAN, then it has a single interface on that VLAN.
8  If the node connects via a dedicated VLAN, then it may have multiple interfaces.
9  Hosted here: http://www.geni.net/resources/rspec/ext/storage/1/storage-ad.xsd
10-->
11<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" targetNamespace="http://www.geni.net/resoruces/rspec/ext/storage/1" xmlns:storage="http://www.geni.net/resoruces/rspec/ext/storage/1">
12  <!--
13    This is meant to extend the sliver_type element when its value is "storage"
14    This may be used in ad RSpecs
15  -->
16  <xs:element name="storage">
17    <xs:complexType>
18      <!-- resource_type should be 'LUN' (aka iSCSI). Maybe 'NFS' in future -->
19      <xs:attribute name="resource_type" use="required" type="xs:string"/>
20      <!-- Capacity is Total available in GB, reservable in fixed quanta usually -->
21      <xs:attribute name="capacity" use="required" type="xs:integer"/>
22      <!-- In GB -->
23      <xs:attribute name="capacity_quanta" use="required" type="xs:integer"/>
24      <!-- Connection type - shared VLAN or dedicated or either -->
25      <xs:attribute name="connection" use="required" type="xs:string"/>
26    </xs:complexType>
27  </xs:element>
28</xs:schema>