Changes between Version 43 and Version 44 of GENIExperimenter/RSpecs
- Timestamp:
- 05/15/12 11:35:31 (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
GENIExperimenter/RSpecs
v43 v44 20 20 version is the [wiki:RSpecSchema3 GENI v3]. 21 21 == GENI v3 == 22 The current GENI v3 RSpec schemas are based on the ProtoGENI v2 RSpecs. You can find some documentation and RSpec examples [http://www.protogeni.net/trac/protogeni/wiki/RSpec on the ProtoGENI website]. There you will also find a [http://www.protogeni.net/trac/protogeni/wiki/RSpecTutorial tutorial on RSpecs]. Although the examples are for ProtoGENI v2 RSpecs, it is easy to [ #ConvertingProtoGENIv2toGENIv3convert them] to GENI v3.22 The current GENI v3 RSpec schemas are based on the ProtoGENI v2 RSpecs. You can find some documentation and RSpec examples [http://www.protogeni.net/trac/protogeni/wiki/RSpec on the ProtoGENI website]. There you will also find a [http://www.protogeni.net/trac/protogeni/wiki/RSpecTutorial tutorial on RSpecs]. Although the examples are for ProtoGENI v2 RSpecs, it is easy to [wiki:HowTo/Convertv2tov3RSpecs convert them] to GENI v3. 23 23 24 24 === OpenFlow v3 Extension === … … 30 30 31 31 == ProtoGENI v2 (deprecated) == 32 The latest GENI v3 are based on ProtoGENI v2 RSpecs. A good resource about understanding and writing ProtoGENI v2 RSpecs can be found on the [http://www.protogeni.net/trac/protogeni/wiki/RSpecTutorial ProtoGENI wiki]. The only difference between 32 ProtoGENI v2 RSpec is the type that ProtoGENI AM used to describe resources. The GENI community decided to adopt this type, and created the GENI v3 RSpec type based on this. It is easy to [wiki:HowTo/Convertv2tov3RSpecs convert RSpecs] from ProtoGENI v2 to GENI v3. 33 33 34 34 = Writing RSpecs = … … 41 41 that will check the validity of an xml document against its schema. 42 42 43 == Converting ProtoGENI v2 to GENI v3 ==44 The only thing that changed from ProtoGENI v2 to GENI v3 RSpecs is the location of the schemas. 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.45 46 ''' ProtoGENI v2 Example '''47 {{{48 #!xml49 <rspec xmlns="http://www.protogeni.net/resources/rspec/2"50 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"51 xsi:schemaLocation="http://www.protogeni.net/resources/rspec/252 http://www.protogeni.net/resources/rspec/2/request.xsd"53 type="request" >54 55 <!-- Rest of RSpec -->56 57 </rspec>58 }}}59 60 ''' GENI v3 Example '''61 {{{62 #!xml63 <rspec xmlns="http://www.geni.net/resources/rspec/3"64 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"65 xsi:schemaLocation="http://www.geni.net/resources/rspec/366 http://www.geni.net/resources/rspec/3/request.xsd"67 type="request" >68 69 <!-- Rest of RSpec -->70 71 </rspec>72 73 }}}74 75 43 ''' For comments and corrections on this page please [mailto:help@geni.net email us].'''