RspecExtensions/storage/1: storage-ad.rnc

File storage-ad.rnc, 1.1 KB (added by nriga@bbn.com, 10 years ago)
Line 
1# An extension for specifying storage resources available in an Ad RSpec.
2# Based on http://geni-orca.renci.org/owl/storage.owl
3# Storage is just a different kind of node. It uses a 'storage' sliver_type.
4# A storage node in an Ad has a component_manager_id, component_id like a normal node.
5# If the node connects via a shared VLAN, then it has a single interface on that VLAN.
6# If the node connects via a dedicated VLAN, then it may have multiple interfaces.
7# Hosted here: http://www.geni.net/resources/rspec/ext/storage/1/storage-ad.xsd
8default namespace = "http://www.geni.net/resoruces/rspec/ext/storage/1"
9
10# This is meant to extend the sliver_type element when its value is "storage"
11# This may be used in ad RSpecs
12StorageSpec = element storage {
13  # resource_type should be 'LUN' (aka iSCSI). Maybe 'NFS' in future
14  attribute resource_type { xsd:string } &
15  # Capacity is Total available in GB, reservable in fixed quanta usually
16  attribute capacity { xsd:integer } &
17  # In GB
18  attribute capacity_quanta { xsd:integer } &
19  # Connection type - shared VLAN or dedicated or either
20  attribute connection { xsd:string }
21}
22
23start = StorageSpec
24