X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;ds=sidebyside;f=sfa%2Frspecs%2Fversions%2Fpgv3.py;h=149d877728473faab2ed3b01d7a4501d5dc8fc25;hb=04acd3228e5911d36d0cd58dc35b9319fc558e17;hp=efec871dcb500f365064ea0fd105728bb0b03803;hpb=757704ef48f67222c74243095dc59c9577133b58;p=sfa.git diff --git a/sfa/rspecs/versions/pgv3.py b/sfa/rspecs/versions/pgv3.py index efec871d..149d8777 100644 --- a/sfa/rspecs/versions/pgv3.py +++ b/sfa/rspecs/versions/pgv3.py @@ -1,6 +1,7 @@ from sfa.rspecs.versions.pgv2 import PGv2 -class PGv3(PGv2): + +class GENIv3(PGv2): type = 'GENI' content_type = 'ad' version = '3' @@ -9,26 +10,48 @@ class PGv3(PGv2): extensions = { 'flack': "http://www.protogeni.net/resources/rspec/ext/flack/1", 'planetlab': "http://www.planet-lab.org/resources/sfa/ext/planetlab/1", + 'plos': "http://www.planet-lab.org/resources/sfa/ext/plos/1", } - namespaces = dict(extensions.items() + [('default', namespace)]) + namespaces = dict(list(extensions.items()) + [('default', namespace)]) elements = [] -class PGv3Ad(PGv3): +class GENIv3Ad(GENIv3): enabled = True content_type = 'ad' schema = 'http://www.geni.net/resources/rspec/3/ad.xsd' - template = '' + template = """ + + + + + + Boot the node + + VMs begin powered down or inactive. They + must be explicitly booted before use. + + + The node is up and ready to use. + + + The node has failed and requires administrator + intervention before it can be used. Please contact support + for assistance. + + +""" + -class PGv3Request(PGv3): +class GENIv3Request(GENIv3): enabled = True content_type = 'request' schema = 'http://www.geni.net/resources/rspec/3/request.xsd' - template = '' + template = '' + -class PGv2Manifest(PGv3): +class GENIv2Manifest(GENIv3): enabled = True content_type = 'manifest' schema = 'http://www.geni.net/resources/rspec/3/manifest.xsd' - template = '' - + template = ''