added passage of parameters to the create functions in the script
This commit is contained in:
parent
cb2e0a46df
commit
d27f9248b2
2 changed files with 6 additions and 2 deletions
BIN
server/core/.Image.php.swp
Normal file
BIN
server/core/.Image.php.swp
Normal file
Binary file not shown.
|
@ -53,12 +53,16 @@ class automating implements Core{
|
||||||
|
|
||||||
public function script()
|
public function script()
|
||||||
{
|
{
|
||||||
|
appImage->setPostParam("A_REMPLIR_PAR_Evan","VALEUR");
|
||||||
appImage->createImage();
|
appImage->createImage();
|
||||||
appImage->create_network();
|
appImage->create_network();
|
||||||
appImage->list_network_ids();
|
appImage->list_network_ids();
|
||||||
appImage->create_subnet();
|
appImage->create_subnet();
|
||||||
appCompute->listFlavors();
|
appCompute->listFlavors(); //to show all flavors with detail.
|
||||||
appCompute->listImages();
|
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();
|
appCompute->createServer();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue