X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=sfa%2Fbonfire%2Fbonfire.py;fp=sfa%2Fbonfire%2Fbonfire.py;h=9f3a957175121fafa50818c663f5ed567ef2ff04;hb=246776227c130935075056a6c7401b6d6d77c1c5;hp=0818e21a0441af23bb1062999711ab47bd1d23a0;hpb=3e9276552b2368c8a660d0db61e533944cae6688;p=sfa.git
diff --git a/sfa/bonfire/bonfire.py b/sfa/bonfire/bonfire.py
index 0818e21a..9f3a9571 100644
--- a/sfa/bonfire/bonfire.py
+++ b/sfa/bonfire/bonfire.py
@@ -34,7 +34,7 @@ import time
# python -c 'import bonfire; print bonfire.allocate("nlebreto", "nlebreto", "tdes", "125", "topdomain.dummy.nicolas")'
# 3) provisioning: changing the status to running status for the experiment 2911
-# python -c 'import bonfire; print bonfire.provisioning("2911")'
+# python -c 'import bonfire; print bonfire.provisioning("2911","running")'
# 4) bonfire create virtual machine with these specific features 1) fr-inria storages n°1805 network 2 ip public 2) uk-epcc storages n°1364 network 0 bonfire wan
# python -c 'import bonfire; print bonfire.create_vm("fr-inria", "56910", "rester", "nlebreto")'
@@ -164,9 +164,9 @@ def stop_vm(testbed, num_compute):
# provisioning : set a bonfire's experiment to running
# changing the status to running status
-def provisioning(num_experiment):
+def provisioning(num_experiment, status):
url = "https://api.integration.bonfire.grid5000.fr/experiments/" + num_experiment
- xmldescription = 'running'
+ xmldescription = ''+ status + ''
headers = {'content-type': 'application/vnd.bonfire+xml'}
h = bonfire_authenticate()
r = requests.post(url, data=xmldescription, headers=headers, verify=False, auth=(h["user"], h["user_pass"]))