ajout parametres dans Automating

This commit is contained in:
Yoggzo 2016-03-30 11:56:26 +02:00
parent 646af6fd4d
commit ba8b5feb07

View file

@ -53,13 +53,19 @@ class automating implements Core{
public function script() public function script()
{ {
appImage->setPostParam("A_REMPLIR_PAR_Evan","VALEUR"); $opt = Array();
$opt['name'] = getPostParam('name');
appImage->setPostParam('opt' $opt);
appImage->createImage(); appImage->createImage();
appImage->create_network();
appImage->list_network_ids(); appNetwork->create_network();
appImage->create_subnet(); appnetwork->list_network_ids();
appNetwork->create_subnet();
appCompute->listFlavors(); //to show all flavors with detail. 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->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("name","Test");
appCompute->setPostParam("imageId","CREATED_ABOVE"); appCompute->setPostParam("imageId","CREATED_ABOVE");
appCompute->setPostParam("flavorId","1"); appCompute->setPostParam("flavorId","1");