summaryrefslogtreecommitdiffstats
path: root/windriver/titanium_cloud/extensions
diff options
context:
space:
mode:
authorBin Yang <bin.yang@windriver.com>2017-09-23 01:20:11 +0800
committerBin Yang <bin.yang@windriver.com>2017-09-23 01:21:52 +0800
commitd48dc5d5af174535d5d96c2bbaee3d03715ed2b9 (patch)
treec5a1cfc07fc8d5df4cfe52aeb5d0ea4e4896333f /windriver/titanium_cloud/extensions
parent2de8e160c31f3ecf951fb4e85a96aa1e814b0a33 (diff)
Add backward support for identity v2.0 API
Add NBI v2.0/tokens and convert to SBI v3/auth/tokens Change-Id: I5734e18f78844f15847b3a0a2d906b70e75fd260 Issue-Id: INT-225 Signed-off-by: Bin Yang <bin.yang@windriver.com>
Diffstat (limited to 'windriver/titanium_cloud/extensions')
-rw-r--r--windriver/titanium_cloud/extensions/views/extensions.py18
1 files changed, 12 insertions, 6 deletions
diff --git a/windriver/titanium_cloud/extensions/views/extensions.py b/windriver/titanium_cloud/extensions/views/extensions.py
index 2dd61fe9..3b231c02 100644
--- a/windriver/titanium_cloud/extensions/views/extensions.py
+++ b/windriver/titanium_cloud/extensions/views/extensions.py
@@ -12,9 +12,18 @@
# See the License for the specific language governing permissions and
# limitations under the License.
import logging
+import traceback
+
+from keystoneauth1.exceptions import HttpError
+from rest_framework import status
+from rest_framework.response import Response
+from rest_framework.views import APIView
from titanium_cloud.pub.config import config
+from newton.pub.exceptions import VimDriverNewtonException
+from newton.requests.views.util import VimDriverUtils
from newton.extensions.views import extensions as newton_extensions
+from newton.pub.msapi import extsys
logger = logging.getLogger(__name__)
@@ -39,17 +48,14 @@ class Extensions(newton_extensions.Extensions):
"alias": "epa-caps",
"description": "Multiple network support",
"name": "EPACapsQuery",
- "url": self.proxy_prefix + "/%s/extensions/epa-caps" \
- % (vimid),
+ "url": self.proxy_prefix + "/%s/extensions/epa-caps" % (vimid),
"spec": ""
},
{
"alias": "guest-monitor",
"description": "Multiple network support",
- "name": "EPACapsQuery",
- "url": self.proxy_prefix +\
- "/%s/extensions/guest-monitor/{server_id}" \
- % (vimid),
+ "name": "Guest Monitor",
+ "url": self.proxy_prefix + "/%s/extensions/guest-monitor/{server_id}" % (vimid),
"spec": ""
}
]