Correct Error in App, Add Compute in App, add Network in Index
This commit is contained in:
parent
c1990e951b
commit
3fe5596998
2 changed files with 15 additions and 3 deletions
|
@ -33,7 +33,7 @@ class App{
|
||||||
public function setToken($token){
|
public function setToken($token){
|
||||||
|
|
||||||
$this->tokenPost = $token;
|
$this->tokenPost = $token;
|
||||||
$this->tokenClass->loadBackup($his->tokenPost);
|
$this->tokenClass->loadBackup($this->tokenPost);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -55,6 +55,11 @@ class App{
|
||||||
$opt = $this->tokenClass->getOptions($service);
|
$opt = $this->tokenClass->getOptions($service);
|
||||||
return $this->openstack->networkingV2($opt);
|
return $this->openstack->networkingV2($opt);
|
||||||
break;
|
break;
|
||||||
|
case "Compute":
|
||||||
|
if($this->tokenPost == NULL) $this->tokenClass->genComputeToken();
|
||||||
|
$opt = $this->tokenClass->getOptions($service);
|
||||||
|
return $this->openstack->computeV2($opt);
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -28,6 +28,13 @@
|
||||||
$App->show();
|
$App->show();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case "network":
|
||||||
|
include_once("core/Network.php");
|
||||||
|
$networkObject = new network($App);
|
||||||
|
$networkObject->action($action);
|
||||||
|
$App->show();
|
||||||
|
break;
|
||||||
|
|
||||||
case "image":
|
case "image":
|
||||||
include_once("core/Image.php");
|
include_once("core/Image.php");
|
||||||
$imageObject = new image($App);
|
$imageObject = new image($App);
|
||||||
|
|
Loading…
Add table
Reference in a new issue