HowTo/Convertv2tov3RSpecs

Converting ProtoGENI v2 to GENI v3

The only thing that changed from ProtoGENI v2 to GENI v3 RSpecs is the location of the schemas. In ProtoGENI v2 the schemas are located at http://www.geni.net/resources/rspec/3 while in GENI v3 the schemas are located at http://www.protogeni.net/resources/rspec/2. On the top of a ProtoGENI v2 RSpecs there is the <rspec> tag that provides a lot of information about the RSpec version and the location of the schemas. In order to convert them to GENI v3 RSpecs you will just need to replace URL that points to the schemas to reflect the new path.

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>