summaryrefslogtreecommitdiff
path: root/server/core/App.php
diff options
context:
space:
mode:
authorLoic GUEGAN <loic@Manzerbredes.home>2016-04-26 23:37:10 +0200
committerLoic GUEGAN <loic@Manzerbredes.home>2016-04-26 23:37:10 +0200
commita845b20ee91cd6aa9981551206aec1a85dd407f8 (patch)
treec5451bd27c727e0937871f86856ec1a22c7f84ef /server/core/App.php
parent91b6918ef3f830c46eac5aa0249edb7f52ba87cd (diff)
parent477dc821824b422c11d0d34b644de4b68a596510 (diff)
Merge branch 'loic' into loic-image-edition
Diffstat (limited to 'server/core/App.php')
-rwxr-xr-xserver/core/App.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/server/core/App.php b/server/core/App.php
index 48bb9ab..114d945 100755
--- a/server/core/App.php
+++ b/server/core/App.php
@@ -1,5 +1,4 @@
<?php
-include_once("core/Plugin_Api.php");
include_once("core/LibOverride/genTokenOptions.php");
include_once("core/ErrorManagement.php");
@@ -11,7 +10,6 @@ use OpenCloud\Common\Error\UserInputError;
class App{
protected $openstack;
- protected $pluginsApi;
protected $postParams;
protected $tokenClass;
protected $tokenPost;
@@ -23,7 +21,6 @@ class App{
$this->tokenPost = NULL;
$this->tokenClass = new genTokenOptions($args);
$this->openstack = new OpenStack\OpenStack(['authUrl' => $args["authUrl"]]);
- $this->pluginsApi = plugin_api::getInstance();
$this->errorClass = new errorManagement($this);
$this->output = array();
$this->postParams = $_POST;
@@ -64,6 +61,11 @@ class App{
$opt = $this->tokenClass->getOptions($service);
return $this->openstack->computeV2($opt);
break;
+ case "NetworkLayer3":
+ if($this->tokenPost == NULL) $this->tokenClass->genNetworkToken();
+ $opt = $this->tokenClass->getOptions('Network');
+ return $this->openstack->networkingV2ExtLayer3($opt);
+ break;
}
}