From d27f9248b2b8ef2829f14ba1331a9ba6dfbe8ed0 Mon Sep 17 00:00:00 2001 From: stupidon Date: Wed, 30 Mar 2016 11:06:03 +0200 Subject: added passage of parameters to the create functions in the script --- server/core/.Image.php.swp | Bin 0 -> 16384 bytes server/core/Automating.php | 8 ++++++-- 2 files changed, 6 insertions(+), 2 deletions(-) create mode 100644 server/core/.Image.php.swp (limited to 'server/core') diff --git a/server/core/.Image.php.swp b/server/core/.Image.php.swp new file mode 100644 index 0000000..68e866c Binary files /dev/null and b/server/core/.Image.php.swp differ diff --git a/server/core/Automating.php b/server/core/Automating.php index adad348..df6e829 100644 --- a/server/core/Automating.php +++ b/server/core/Automating.php @@ -53,12 +53,16 @@ class automating implements Core{ public function script() { + appImage->setPostParam("A_REMPLIR_PAR_Evan","VALEUR"); appImage->createImage(); appImage->create_network(); appImage->list_network_ids(); appImage->create_subnet(); - appCompute->listFlavors(); - appCompute->listImages(); + 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"); appCompute->createServer(); } -- cgit v1.2.3