Skip to content

Commit bdb7d27

Browse files
author
Kristy Wienken
committed
add GPU to the virtual create-options table
1 parent 02812ce commit bdb7d27

File tree

3 files changed

+22
-0
lines changed

3 files changed

+22
-0
lines changed

SoftLayer/CLI/virt/create_options.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ def _add_flavor_rows(flavor_key, flavor_label, flavor_options):
5151
_add_flavor_rows('BL2', 'balanced local - ssd', result['flavors'])
5252
_add_flavor_rows('C1', 'compute', result['flavors'])
5353
_add_flavor_rows('M1', 'memory', result['flavors'])
54+
_add_flavor_rows('AC', 'GPU', result['flavors'])
5455

5556
# CPUs
5657
standard_cpus = [int(x['template']['startCpus']) for x in result['processors']

SoftLayer/fixtures/SoftLayer_Virtual_Guest.py

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,26 @@
121121
}
122122
}
123123
},
124+
{
125+
'flavor': {
126+
'keyName': 'AC1_1X2X100'
127+
},
128+
'template': {
129+
'supplementalCreateObjectOptions': {
130+
'flavorKeyName': 'AC1_1X2X100'
131+
}
132+
}
133+
},
134+
{
135+
'flavor': {
136+
'keyName': 'ACL1_1X2X100'
137+
},
138+
'template': {
139+
'supplementalCreateObjectOptions': {
140+
'flavorKeyName': 'ACL1_1X2X100'
141+
}
142+
}
143+
},
124144
],
125145
'processors': [
126146
{

tests/CLI/modules/vs_tests.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@ def test_create_options(self):
123123
'flavors (balanced local - ssd)': ['BL2_1X2X100'],
124124
'flavors (compute)': ['C1_1X2X25'],
125125
'flavors (memory)': ['M1_1X2X100'],
126+
'flavors (GPU)': ['AC1_1X2X100', 'ACL1_1X2X100'],
126127
'local disk(0)': ['25', '100'],
127128
'memory': [1024, 2048, 3072, 4096],
128129
'memory (dedicated host)': [8192, 65536],

0 commit comments

Comments
 (0)