class Flavors(APIView):
service = {'service_type': 'compute',
- 'interface': 'public',
- 'region_name': 'RegionOne'}
+ 'interface': 'public'}
keys_mapping = [
("project_id", "tenantId"),
("ram", "memory"),
class Hosts(APIView):
service = {'service_type': 'compute',
- 'interface': 'public',
- 'region_name': 'RegionOne'}
+ 'interface': 'public'}
hosts_keys_mapping = [
("host_name", "name"),
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
class Images(APIView):
service = {'service_type': 'image',
- 'interface': 'public',
- 'region_name': 'RegionOne'}
+ 'interface': 'public'}
keys_mapping = [
("project_id", "tenantId"),
("disk_format", "imageType"),
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)
class Networks(APIView):
service = {'service_type': 'network',
- 'interface': 'public',
- 'region_name': 'RegionOne'}
+ 'interface': 'public'}
keys_mapping = [
("provider:segmentation_id", "segmentationId"),
("provider:physical_network", "physicalNetwork"),
#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
class Servers(APIView):
service = {'service_type': 'compute',
- 'interface': 'public',
- 'region_name': 'RegionOne'}
+ 'interface': 'public'}
keys_mapping = [
("tenant_id", "tenantId"),
("flavorRef", "flavorId"),
class Subnets(APIView):
service = {'service_type': 'network',
- 'interface': 'public',
- 'region_name': 'RegionOne'}
+ 'interface': 'public'}
keys_mapping = [
("project_id", "tenantId"),
("network_id", "networkId"),
class Tenants(APIView):
service = {'service_type': 'identity',
- 'interface': 'public',
- 'region_name': 'RegionOne'}
+ 'interface': 'public'}
keys_mapping = [
("projects", "tenants"),
]
class Volumes(APIView):
service = {'service_type': 'volumev2',
- 'interface': 'public',
- 'region_name': 'RegionOne'}
+ 'interface': 'public'}
keys_mapping = [
("project_id", "tenantId"),
("created_at", "createTime"),
class Vports(APIView):
service = {'service_type': 'network',
- 'interface': 'public',
- 'region_name': 'RegionOne'}
+ 'interface': 'public'}
keys_mapping = [
("project_id", "tenantId"),
("network_id", "networkId"),
class Flavors(APIView):
service = {'service_type': 'compute',
- 'interface': 'public',
- 'region_name': 'RegionOne'}
+ 'interface': 'public'}
keys_mapping = [
("project_id", "tenantId"),
("ram", "memory"),
class Hosts(APIView):
service = {'service_type': 'compute',
- 'interface': 'public',
- 'region_name': 'RegionOne'}
+ 'interface': 'public'}
hosts_keys_mapping = [
("host_name", "name"),
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
class Images(APIView):
service = {'service_type': 'image',
- 'interface': 'public',
- 'region_name': 'RegionOne'}
+ 'interface': 'public'}
keys_mapping = [
("project_id", "tenantId"),
("disk_format", "imageType"),
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)
class Networks(APIView):
service = {'service_type': 'network',
- 'interface': 'public',
- 'region_name': 'RegionOne'}
+ 'interface': 'public'}
keys_mapping = [
("provider:segmentation_id", "segmentationId"),
("provider:physical_network", "physicalNetwork"),
#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
class Servers(APIView):
service = {'service_type': 'compute',
- 'interface': 'public',
- 'region_name': 'RegionOne'}
+ 'interface': 'public'}
keys_mapping = [
("tenant_id", "tenantId"),
("flavorRef", "flavorId"),
class Subnets(APIView):
service = {'service_type': 'network',
- 'interface': 'public',
- 'region_name': 'RegionOne'}
+ 'interface': 'public'}
keys_mapping = [
("project_id", "tenantId"),
("network_id", "networkId"),
class Tenants(APIView):
service = {'service_type': 'identity',
- 'interface': 'public',
- 'region_name': 'RegionOne'}
+ 'interface': 'public'}
keys_mapping = [
("projects", "tenants"),
]
class Volumes(APIView):
service = {'service_type': 'volumev2',
- 'interface': 'public',
- 'region_name': 'RegionOne'}
+ 'interface': 'public'}
keys_mapping = [
("project_id", "tenantId"),
("created_at", "createTime"),
class Vports(APIView):
service = {'service_type': 'network',
- 'interface': 'public',
- 'region_name': 'RegionOne'}
+ 'interface': 'public'}
keys_mapping = [
("project_id", "tenantId"),
("network_id", "networkId"),