summaryrefslogtreecommitdiff
path: root/server/core
diff options
context:
space:
mode:
authorYoggzo <yogg@epsina.com>2016-03-30 11:56:26 +0200
committerYoggzo <yogg@epsina.com>2016-03-30 11:56:26 +0200
commitba8b5feb07a7a19ca4a694313fa16d03a2fb2508 (patch)
tree4d7694089f55bd1036759e654343e2742d34bc29 /server/core
parent646af6fd4d14c5b5edb1372e5f68ed9bdc35b3d2 (diff)
ajout parametres dans Automating
Diffstat (limited to 'server/core')
-rw-r--r--server/core/Automating.php14
1 files changed, 10 insertions, 4 deletions
diff --git a/server/core/Automating.php b/server/core/Automating.php
index df6e829..1eef72c 100644
--- a/server/core/Automating.php
+++ b/server/core/Automating.php
@@ -53,13 +53,19 @@ class automating implements Core{
public function script()
{
- appImage->setPostParam("A_REMPLIR_PAR_Evan","VALEUR");
+ $opt = Array();
+ $opt['name'] = getPostParam('name');
+
+ appImage->setPostParam('opt' $opt);
appImage->createImage();
- appImage->create_network();
- appImage->list_network_ids();
- appImage->create_subnet();
+
+ appNetwork->create_network();
+ appnetwork->list_network_ids();
+ appNetwork->create_subnet();
+
appCompute->listFlavors(); //to show all flavors with detail.
appCompute->listImages(); //to show all images with detail and to verify that the image was created successfully by the call above.
+
appCompute->setPostParam("name","Test");
appCompute->setPostParam("imageId","CREATED_ABOVE");
appCompute->setPostParam("flavorId","1");