The Next Step Towards Interoperability: OVF to OCCI mapping

We are glad to announce that parts of the OVF specification have been implemented by Kanchanna Ramasamy Balraj from Engineering and Florian Feldhaus of GWDG in the rOCCI framework which is now available as Ruby Gem. For detailed information check code and readme at https://github.com/gwdg/rOCCI.

To install the gem just issue the command:

gem install occi

Then start the Ruby Interpreter

irb

Import the necessary gems rubygems (only necessary for ruby < 1.9), occi and open-uri:

require 'rubygems'
require 'occi'
require 'open-uri'

Read in an OVA or OVF file. For testing purposes you can use the OVA file bundled with rOCCI which is based on the example from DMTF DSP 2021:

url='https://raw.github.com/gwdg/rOCCI/spec/occi/test.ova'
ova=open url

Now you can parse the OVA file to a collection of OCCI objects:

collection=OCCI::Parser.ova(ova.read)

The collection can now be used by other components (e.g. rOCCI-server) to interpret the data. To see the contents of the collection in JSON format use

jj JSON.parse(collection.to_json)

Leave a Reply

Your email address will not be published. Required fields are marked *