added passage of parameters to the create functions in the script

This commit is contained in:
stupidon 2016-03-30 11:06:03 +02:00
parent cb2e0a46df
commit d27f9248b2
2 changed files with 6 additions and 2 deletions

BIN
server/core/.Image.php.swp Normal file

Binary file not shown.

View file

@ -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();
}