summaryrefslogtreecommitdiffstats
path: root/kilo/kilo/requests/views
diff options
context:
space:
mode:
Diffstat (limited to 'kilo/kilo/requests/views')
-rw-r--r--kilo/kilo/requests/views/flavor.py3
-rw-r--r--kilo/kilo/requests/views/hosts.py3
-rw-r--r--kilo/kilo/requests/views/image.py6
-rw-r--r--kilo/kilo/requests/views/limits.py9
-rw-r--r--kilo/kilo/requests/views/network.py3
-rw-r--r--kilo/kilo/requests/views/server.py6
-rw-r--r--kilo/kilo/requests/views/subnet.py3
-rw-r--r--kilo/kilo/requests/views/tenants.py3
-rw-r--r--kilo/kilo/requests/views/volume.py3
-rw-r--r--kilo/kilo/requests/views/vport.py3
10 files changed, 14 insertions, 28 deletions
diff --git a/kilo/kilo/requests/views/flavor.py b/kilo/kilo/requests/views/flavor.py
index 1e713064..87b851cf 100644
--- a/kilo/kilo/requests/views/flavor.py
+++ b/kilo/kilo/requests/views/flavor.py
@@ -28,8 +28,7 @@ logger = logging.getLogger(__name__)
class Flavors(APIView):
service = {'service_type': 'compute',
- 'interface': 'public',
- 'region_name': 'RegionOne'}
+ 'interface': 'public'}
keys_mapping = [
("project_id", "tenantId"),
("ram", "memory"),
diff --git a/kilo/kilo/requests/views/hosts.py b/kilo/kilo/requests/views/hosts.py
index 022c59e9..2a48ac51 100644
--- a/kilo/kilo/requests/views/hosts.py
+++ b/kilo/kilo/requests/views/hosts.py
@@ -28,8 +28,7 @@ logger = logging.getLogger(__name__)
class Hosts(APIView):
service = {'service_type': 'compute',
- 'interface': 'public',
- 'region_name': 'RegionOne'}
+ 'interface': 'public'}
hosts_keys_mapping = [
("host_name", "name"),
diff --git a/kilo/kilo/requests/views/image.py b/kilo/kilo/requests/views/image.py
index a3e70019..a9c532d7 100644
--- a/kilo/kilo/requests/views/image.py
+++ b/kilo/kilo/requests/views/image.py
@@ -32,8 +32,7 @@ running_thread_lock = threading.Lock()
class imageThread (threading.Thread):
service = {'service_type': 'image',
- 'interface': 'public',
- 'region_name': 'RegionOne'}
+ 'interface': 'public'}
def __init__(self, vimid, tenantid, imageid, imagefd):
threading.Thread.__init__(self)
self.vimid = vimid
@@ -76,8 +75,7 @@ class imageThread (threading.Thread):
class Images(APIView):
service = {'service_type': 'image',
- 'interface': 'public',
- 'region_name': 'RegionOne'}
+ 'interface': 'public'}
keys_mapping = [
("project_id", "tenantId"),
("disk_format", "imageType"),
diff --git a/kilo/kilo/requests/views/limits.py b/kilo/kilo/requests/views/limits.py
index 3b6f0528..9d084727 100644
--- a/kilo/kilo/requests/views/limits.py
+++ b/kilo/kilo/requests/views/limits.py
@@ -28,16 +28,13 @@ logger = logging.getLogger(__name__)
class Limits(APIView):
service = {'service_type': 'compute',
- 'interface': 'public',
- 'region_name': 'RegionOne'}
+ 'interface': 'public'}
service_network = {'service_type': 'network',
- 'interface': 'public',
- 'region_name': 'RegionOne'}
+ 'interface': 'public'}
service_volume = {'service_type': 'volumev2',
- 'interface': 'public',
- 'region_name': 'RegionOne'}
+ 'interface': 'public'}
def get(self, request, vimid="", tenantid=""):
logger.debug("Limits--get::> %s" % request.data)
diff --git a/kilo/kilo/requests/views/network.py b/kilo/kilo/requests/views/network.py
index 61a409e4..4a5667d8 100644
--- a/kilo/kilo/requests/views/network.py
+++ b/kilo/kilo/requests/views/network.py
@@ -28,8 +28,7 @@ logger = logging.getLogger(__name__)
class Networks(APIView):
service = {'service_type': 'network',
- 'interface': 'public',
- 'region_name': 'RegionOne'}
+ 'interface': 'public'}
keys_mapping = [
("provider:segmentation_id", "segmentationId"),
("provider:physical_network", "physicalNetwork"),
diff --git a/kilo/kilo/requests/views/server.py b/kilo/kilo/requests/views/server.py
index 105f73b6..0d43ab36 100644
--- a/kilo/kilo/requests/views/server.py
+++ b/kilo/kilo/requests/views/server.py
@@ -34,8 +34,7 @@ running_thread_lock = threading.Lock()
#assume volume is attached on server creation
class serverThread (threading.Thread):
service = {'service_type': 'compute',
- 'interface': 'public',
- 'region_name': 'RegionOne'}
+ 'interface': 'public'}
def __init__(self, vimid, tenantid, serverid, is_attach, *volumeids):
threading.Thread.__init__(self)
self.vimid = vimid
@@ -128,8 +127,7 @@ class serverThread (threading.Thread):
class Servers(APIView):
service = {'service_type': 'compute',
- 'interface': 'public',
- 'region_name': 'RegionOne'}
+ 'interface': 'public'}
keys_mapping = [
("tenant_id", "tenantId"),
("flavorRef", "flavorId"),
diff --git a/kilo/kilo/requests/views/subnet.py b/kilo/kilo/requests/views/subnet.py
index 8dabafb1..3696fa08 100644
--- a/kilo/kilo/requests/views/subnet.py
+++ b/kilo/kilo/requests/views/subnet.py
@@ -28,8 +28,7 @@ logger = logging.getLogger(__name__)
class Subnets(APIView):
service = {'service_type': 'network',
- 'interface': 'public',
- 'region_name': 'RegionOne'}
+ 'interface': 'public'}
keys_mapping = [
("project_id", "tenantId"),
("network_id", "networkId"),
diff --git a/kilo/kilo/requests/views/tenants.py b/kilo/kilo/requests/views/tenants.py
index 31b17a0b..bdf33320 100644
--- a/kilo/kilo/requests/views/tenants.py
+++ b/kilo/kilo/requests/views/tenants.py
@@ -29,8 +29,7 @@ DEBUG=True
class Tenants(APIView):
service = {'service_type': 'identity',
- 'interface': 'public',
- 'region_name': 'RegionOne'}
+ 'interface': 'public'}
keys_mapping = [
("projects", "tenants"),
]
diff --git a/kilo/kilo/requests/views/volume.py b/kilo/kilo/requests/views/volume.py
index 41a8f852..6527c07e 100644
--- a/kilo/kilo/requests/views/volume.py
+++ b/kilo/kilo/requests/views/volume.py
@@ -28,8 +28,7 @@ logger = logging.getLogger(__name__)
class Volumes(APIView):
service = {'service_type': 'volumev2',
- 'interface': 'public',
- 'region_name': 'RegionOne'}
+ 'interface': 'public'}
keys_mapping = [
("project_id", "tenantId"),
("created_at", "createTime"),
diff --git a/kilo/kilo/requests/views/vport.py b/kilo/kilo/requests/views/vport.py
index 7fd6b900..beb6e807 100644
--- a/kilo/kilo/requests/views/vport.py
+++ b/kilo/kilo/requests/views/vport.py
@@ -28,8 +28,7 @@ logger = logging.getLogger(__name__)
class Vports(APIView):
service = {'service_type': 'network',
- 'interface': 'public',
- 'region_name': 'RegionOne'}
+ 'interface': 'public'}
keys_mapping = [
("project_id", "tenantId"),
("network_id", "networkId"),