As a meta-model, OCCI Core should be described in a formalized way, machine-readable, as to be able to generate implementations. We present here an XML representation of OCCI extensions and types with this objectives.
Boost PC performance: How more available memory can improve productivity
OCCI XML representation
1. 1
This document is licensed under
a Creative Commons Attribution 3.0 Unported License.
Madrid, September 18th
, 2013
Jean Parpaillon – Silkan
Iain James Marshall – Prologue
Jonathan Custance - OnApp
OCCI XML representation
2. 22
This document is licensed under
a Creative Commons Attribution 3.0 Unported License.
September 18th, 2013 Cloud Interoperability Week
Background
✔ CompatibleOne : an open source cloud brokering
platform
✔ Based on OCCI
✔ With extensions: manifest, configuration, user, security, etc.
✔ Use XML for
✔ Storage
✔ Validation: categories described as XML schema (XSD)
3. 33
This document is licensed under
a Creative Commons Attribution 3.0 Unported License.
September 18th, 2013 Cloud Interoperability Week
Current extensions specs
✔ Free text + UML schemas
✔ Attributes types: string, numbers
✔ Attributes multiplicity: required, optional
✔ No attributes default value
5. 55
This document is licensed under
a Creative Commons Attribution 3.0 Unported License.
September 18th, 2013 Cloud Interoperability Week
XML reminder
✔ Formal constraint description: XML schemas
✔ Validation
✔ Transformation
✔ XSLT: XML to XML, XML to text
✔ Query
✔ XPATH
✔ Parsing
✔ Tree based, event based, ...
6. 66
This document is licensed under
a Creative Commons Attribution 3.0 Unported License.
September 18th, 2013 Cloud Interoperability Week
XML schema proposal (1)
✔ An XML schema to describe OCCI types
✔ Kind, Mixin, Action, Resource, Link
✔ Top-level elements:
✔ Extension (kind+, mixin+): for extensions
✔ Objects (kind+, mixin+, action+, resource+, link+): for
rendering
9. 99
This document is licensed under
a Creative Commons Attribution 3.0 Unported License.
September 18th, 2013 Cloud Interoperability Week
XML schema proposal (2)
✔ Attribute types: inherits XSD typing
✔ 44 base types: decimal, string, date, etc.
✔ Type extension
✔ Integer + 'undefined'
✔ Type restriction
✔ String pattern
✔ Number range
10. 10
OCCI attribute type
<xs:simpleType name="vlanType">
<xs:restriction base="xs:integer">
<xs:minInclusive value="0"></xs:minInclusive>
<xs:maxInclusive value="4095"></xs:maxInclusive>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="mac802">
<xs:restriction base="xs:string">
<xs:pattern value="[da-fA-F]{2}(:[da-fA-F]{2})5}" />
</xs:restriction>
</xs:simpleType>
802.1q VLAN type
MAC Address
11. 1111
This document is licensed under
a Creative Commons Attribution 3.0 Unported License.
September 18th, 2013 Cloud Interoperability Week
That's all !
✔ Please comment, amend... implement
✔ Resources
✔ CompatibleOne project: http://www.compatibleone.org/
✔ Updated XML schemas and examples:
http://github.com/jeanparpaillon/occi-schemas
✔ E-mail: jean.parpaillon@free.fr