Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emulab
emulab-devel
Commits
1fa25734
Commit
1fa25734
authored
Mar 25, 2010
by
Jonathon Duerig
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added a type_relation to rspecv2 along with an example.
parent
2a63abab
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
80 additions
and
6 deletions
+80
-6
protogeni/rspec/2/ad.rnc
protogeni/rspec/2/ad.rnc
+22
-2
protogeni/rspec/2/common.rnc
protogeni/rspec/2/common.rnc
+6
-4
protogeni/rspec/2/examples/type-relation.xml
protogeni/rspec/2/examples/type-relation.xml
+52
-0
No files found.
protogeni/rspec/2/ad.rnc
View file @
1fa25734
...
...
@@ -36,18 +36,29 @@ NodeContents &=
# multiple physical links to connect to the same interface.
element cloud { AnyExtension } &
# Lists services provided by the CM for this node.
element services { ServiceContents } &
# Node type. This includes both hardware and sliver type elements:
HardwareType* &
SliverType*
element sliver_type {
SliverTypeContents &
element disk_image {
DiskImageContents &
attribute default { text }?
}*
}*
AvailableContents =
AnyExtension &
# Indictates current availability
attribute now { xsd:boolean }
DiskImageContents =
AnyExtension &
attribute name { text } &
attribute os { text }? &
attribute version { text }?
LinkContents &=
# Component identifiers
attribute component_id { text } &
...
...
@@ -106,10 +117,19 @@ ExecuteServiceContents &=
# Shell environment allowed
attribute shell { "sh" }
TypeRelationContents &=
AnyExtension &
element hardware_type { HardwareTypeContents }* &
element sliver_type { SliverTypeContents }* &
element disk_image { DiskImageContents }*
RSpecContents &=
attribute type { "advertisement" } &
element external_ref {
ExternalReferenceContents
}* &
element type_relation {
TypeRelationContents
}*
start = RSpec
protogeni/rspec/2/common.rnc
View file @
1fa25734
...
...
@@ -118,12 +118,14 @@ LinkClass = element link_class {
attribute name { text }
}
SliverType = element sliver_type {
SliverType = element sliver_type { SliverTypeContents }
SliverTypeContents =
AnyExtension &
attribute name { text }
}
HardwareType = element hardware_type {
HardwareType = element hardware_type { HardwareTypeContents }
HardwareTypeContents =
AnyExtension &
attribute name { text }
}
protogeni/rspec/2/examples/type-relation.xml
0 → 100644
View file @
1fa25734
<?xml version="1.0" encoding="UTF-8"?>
<rspec
xmlns=
"http://www.protogeni.net/resources/rspec/2"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"http://www.protogeni.net/resources/rspec/2 http://www.protogeni.net/resources/rspec/2/ad.xsd"
type=
"advertisement"
>
<type_relation>
<hardware_type
name=
"pc"
/>
<hardware_type
name=
"pc600"
/>
<hardware_type
name=
"pc3000"
/>
<sliver_type
name=
"raw-pc"
/>
<disk_image
name=
"RH9-STD"
os=
"linux"
version=
"Redhat-9"
/>
</type_relation>
<type_relation>
<hardware_type
name=
"pc3000"
/>
<sliver_type
name=
"raw-pc"
/>
<disk_image
name=
"FBSD62-STD"
os=
"linux"
version=
"FreeBSD-6.2"
/>
</type_relation>
<node
component_id=
"urn:publicid:IDN+emulab.net+node+pc175"
component_manager_id=
"urn:publicid:IDN+emulab.net+authority+cm"
exclusive=
"true"
>
<services>
<login
authentication=
"ssh-keys"
hostname=
"pc175.emulab.net"
port=
"22"
/>
</services>
<sliver_type
name=
"raw-pc"
>
<disk_image
name=
"FBSD62-UNSTABLE"
os=
"linux"
version=
"FreeBSD-6.21"
default=
"true"
>
</disk_image>
</sliver_type>
<hardware_type
name=
"pc3000"
/>
<hardware_type
name=
"pc"
/>
</node>
<node
component_id=
"urn:publicid:IDN+emulab.net+node+pc176"
component_manager_id=
"urn:publicid:IDN+emulab.net+authority+cm"
exclusive=
"true"
>
<services>
<login
authentication=
"ssh-keys"
hostname=
"pc176.emulab.net"
port=
"22"
/>
</services>
<sliver_type
name=
"raw-pc"
/>
<hardware_type
name=
"pc3000"
/>
<hardware_type
name=
"pc"
/>
</node>
<node
component_id=
"urn:publicid:IDN+emulab.net+node+pc1"
component_manager_id=
"urn:publicid:IDN+emulab.net+authority+cm"
exclusive=
"true"
>
<services>
<login
authentication=
"ssh-keys"
hostname=
"pc1.emulab.net"
port=
"22"
/>
</services>
<sliver_type
name=
"raw-pc"
/>
<hardware_type
name=
"pc600"
/>
<hardware_type
name=
"pc"
/>
</node>
</rspec>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment