wiki:HowTo/Convertv2tov3RSpecs

Version 2 (modified by nriga@bbn.com, 12 years ago) (diff)

--

Converting ProtoGENI v2 to GENI v3

The only thing that changed from ProtoGENI v2 to GENI v3 RSpecs is the location of the schemas. If you are using ProtoGENI v2 then make sure that you replace this URL: http://www.geni.net/resources/rspec/3 with this: http://www.protogeni.net/resources/rspec/2 and vice versa. On the top of a ProtoGENI v2 RSpecs there is the <rspec> tag that provides a lot of information about the RSpec version that is used in the document. In order to convert them to GENI v3 RSpecs you will just need to replace that tag.

ProtoGENI v2 Example

<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/request.xsd"
       type="request" >

     <!-- Rest of RSpec -->

</rspec>

GENI v3 Example

<rspec  xmlns="http://www.geni.net/resources/rspec/3" 
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
             xsi:schemaLocation="http://www.geni.net/resources/rspec/3 
                        http://www.geni.net/resources/rspec/3/request.xsd"
     type="request"  >

     <!-- Rest of RSpec -->

</rspec>