ajout parametres dans Automating
This commit is contained in:
parent
646af6fd4d
commit
ba8b5feb07
1 changed files with 10 additions and 4 deletions
|
@ -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");
|
||||||
|
|
Loading…
Add table
Reference in a new issue