-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflavors.py
More file actions
57 lines (51 loc) · 1.89 KB
/
flavors.py
File metadata and controls
57 lines (51 loc) · 1.89 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
flavor_id_mapping = {
# Standard Instances
"512MB Standard Instance": "2",
"1GB Standard Instance": "3",
"2GB Standard Instance": "4",
"4GB Standard Instance": "5",
"8GB Standard Instance": "6",
"15GB Standard Instance": "7",
"30GB Standard Instance": "8",
# Compute v1 Flavors
"15 GB Compute v1": "compute1-15",
"30 GB Compute v1": "compute1-30",
"3.75 GB Compute v1": "compute1-4",
"60 GB Compute v1": "compute1-60",
"7.5 GB Compute v1": "compute1-8",
# General Purpose v1 Flavors
"1 GB General Purpose v1": "general1-1",
"2 GB General Purpose v1": "general1-2",
"4 GB General Purpose v1": "general1-4",
"8 GB General Purpose v1": "general1-8",
# I/O v1 Flavors
"120 GB I/O v1": "io1-120",
"15 GB I/O v1": "io1-15",
"30 GB I/O v1": "io1-30",
"60 GB I/O v1": "io1-60",
"90 GB I/O v1": "io1-90",
# Memory v1 Flavors
"120 GB Memory v1": "memory1-120",
"15 GB Memory v1": "memory1-15",
"240 GB Memory v1": "memory1-240",
"30 GB Memory v1": "memory1-30",
"60 GB Memory v1": "memory1-60",
# OnMetal Flavors
"OnMetal Compute v1": "onmetal-compute1",
"OnMetal General Purpose v2 Large": "onmetal-general2-large",
"OnMetal General Purpose v2 Medium": "onmetal-general2-medium",
"OnMetal General Purpose v2 Small": "onmetal-general2-small",
"OnMetal IO v1": "onmetal-io1",
"OnMetal I/O v2": "onmetal-io2",
"OnMetal Memory v1": "onmetal-memory1",
# Performance Flavors
"1 GB Performance": "performance1-1",
"2 GB Performance": "performance1-2",
"4 GB Performance": "performance1-4",
"8 GB Performance": "performance1-8",
"120 GB Performance": "performance2-120",
"15 GB Performance": "performance2-15",
"30 GB Performance": "performance2-30",
"60 GB Performance": "performance2-60",
"90 GB Performance": "performance2-90"
}