Skip to content

Commit ef9494f

Browse files
Merge branch 'master' of github.com:softlayer/softlayer-python into billing
2 parents 63f9617 + 428753b commit ef9494f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+355
-1633
lines changed

CHANGELOG.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,37 @@
11
# Change Log
22

3+
## [5.7.1] - 2019-02-26
4+
- https://github.com/softlayer/softlayer-python/compare/v5.7.0...v5.7.1
5+
6+
+ #1089 removed legacy SL message queue commands
7+
+ Support for Hardware reflash firmware CLI/Manager method
8+
9+
## [5.7.0] - 2019-02-15
10+
- Changes: https://github.com/softlayer/softlayer-python/compare/v5.6.4...v5.7.0
11+
12+
+ #1099 Support for security group Ids
13+
+ event-log cli command
14+
+ #1069 Virtual Placement Group Support
15+
```
16+
slcli vs placementgroup --help
17+
Commands:
18+
create Create a placement group.
19+
create-options List options for creating a placement group.
20+
delete Delete a placement group.
21+
detail View details of a placement group.
22+
list List placement groups.
23+
```
24+
+ #962 Rest Transport improvements. Properly handle HTTP exceptions instead of crashing.
25+
+ #1090 removed power_state column option from "slcli server list"
26+
+ #676 - ipv6 support for creating virtual guests
27+
* Refactored virtual guest creation to use Product_Order::placeOrder instead of Virtual_Guest::createObject, because createObject doesn't allow adding IPv6
28+
+ #882 Added table which shows the status of each url in object storage
29+
+ #1085 Update provisionedIops reading to handle float-y values
30+
+ #1074 fixed issue with config setup
31+
+ #1081 Fix file volume-cancel
32+
+ #1059 Support for SoftLayer_Hardware_Server::toggleManagementInterface
33+
* `slcli hw toggle-ipmi`
34+
335

436
## [5.6.4] - 2018-11-16
537

SoftLayer/CLI/block/access/authorize.py

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@
1414
@click.option('--virtual-id', '-v', multiple=True,
1515
help='The id of one SoftLayer_Virtual_Guest to authorize')
1616
@click.option('--ip-address-id', '-i', multiple=True,
17-
help='The id of one SoftLayer_Network_Subnet_IpAddress'
18-
' to authorize')
17+
help='The id of one SoftLayer_Network_Subnet_IpAddress to authorize')
1918
@click.option('--ip-address', multiple=True,
2019
help='An IP address to authorize')
2120
@environment.pass_env
@@ -30,16 +29,11 @@ def cli(env, volume_id, hardware_id, virtual_id, ip_address_id, ip_address):
3029
for ip_address_value in ip_address:
3130
ip_address_object = network_manager.ip_lookup(ip_address_value)
3231
if ip_address_object == "":
33-
click.echo("IP Address not found on your account. " +
34-
"Please confirm IP and try again.")
32+
click.echo("IP Address not found on your account. Please confirm IP and try again.")
3533
raise exceptions.ArgumentError('Incorrect IP Address')
36-
else:
37-
ip_address_id_list.append(ip_address_object['id'])
34+
ip_address_id_list.append(ip_address_object['id'])
3835

39-
block_manager.authorize_host_to_volume(volume_id,
40-
hardware_id,
41-
virtual_id,
42-
ip_address_id_list)
36+
block_manager.authorize_host_to_volume(volume_id, hardware_id, virtual_id, ip_address_id_list)
4337

4438
# If no exception was raised, the command succeeded
4539
click.echo('The specified hosts were authorized to access %s' % volume_id)

SoftLayer/CLI/file/access/authorize.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,9 @@ def cli(env, volume_id, hardware_id, virtual_id, ip_address_id,
3333
for ip_address_value in ip_address:
3434
ip_address_object = network_manager.ip_lookup(ip_address_value)
3535
if ip_address_object == "":
36-
click.echo("IP Address not found on your account. " +
37-
"Please confirm IP and try again.")
36+
click.echo("IP Address not found on your account. Please confirm IP and try again.")
3837
raise exceptions.ArgumentError('Incorrect IP Address')
39-
else:
40-
ip_address_id_list.append(ip_address_object['id'])
38+
ip_address_id_list.append(ip_address_object['id'])
4139

4240
file_manager.authorize_host_to_volume(volume_id,
4341
hardware_id,

SoftLayer/CLI/hardware/edit.py

Lines changed: 8 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -12,25 +12,18 @@
1212
@click.command()
1313
@click.argument('identifier')
1414
@click.option('--domain', '-D', help="Domain portion of the FQDN")
15-
@click.option('--userfile', '-F',
16-
help="Read userdata from file",
17-
type=click.Path(exists=True, readable=True, resolve_path=True))
18-
@click.option('--tag', '-g',
19-
multiple=True,
15+
@click.option('--userfile', '-F', type=click.Path(exists=True, readable=True, resolve_path=True),
16+
help="Read userdata from file")
17+
@click.option('--tag', '-g', multiple=True,
2018
help="Tags to set or empty string to remove all")
2119
@click.option('--hostname', '-H', help="Host portion of the FQDN")
2220
@click.option('--userdata', '-u', help="User defined metadata string")
23-
@click.option('--public-speed',
24-
help="Public port speed.",
25-
default=None,
26-
type=click.Choice(['0', '10', '100', '1000', '10000']))
27-
@click.option('--private-speed',
28-
help="Private port speed.",
29-
default=None,
30-
type=click.Choice(['0', '10', '100', '1000', '10000']))
21+
@click.option('--public-speed', default=None, type=click.Choice(['0', '10', '100', '1000', '10000', '-1']),
22+
help="Public port speed. -1 is best speed available")
23+
@click.option('--private-speed', default=None, type=click.Choice(['0', '10', '100', '1000', '10000', '-1']),
24+
help="Private port speed. -1 is best speed available")
3125
@environment.pass_env
32-
def cli(env, identifier, domain, userfile, tag, hostname, userdata,
33-
public_speed, private_speed):
26+
def cli(env, identifier, domain, userfile, tag, hostname, userdata, public_speed, private_speed):
3427
"""Edit hardware details."""
3528

3629
if userdata and userfile:
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
"""Reflash firmware."""
2+
# :license: MIT, see LICENSE for more details.
3+
4+
import click
5+
6+
import SoftLayer
7+
from SoftLayer.CLI import environment
8+
from SoftLayer.CLI import exceptions
9+
from SoftLayer.CLI import formatting
10+
from SoftLayer.CLI import helpers
11+
12+
13+
@click.command()
14+
@click.argument('identifier')
15+
@environment.pass_env
16+
def cli(env, identifier):
17+
"""Reflash server firmware."""
18+
19+
mgr = SoftLayer.HardwareManager(env.client)
20+
hw_id = helpers.resolve_id(mgr.resolve_ids, identifier, 'hardware')
21+
if not (env.skip_confirmations or
22+
formatting.confirm('This will power off the server with id %s and '
23+
'reflash device firmware. Continue?' % hw_id)):
24+
raise exceptions.CLIAbort('Aborted.')
25+
26+
mgr.reflash_firmware(hw_id)

SoftLayer/CLI/mq/__init__.py

Lines changed: 0 additions & 57 deletions
This file was deleted.

SoftLayer/CLI/mq/accounts_list.py

Lines changed: 0 additions & 28 deletions
This file was deleted.

SoftLayer/CLI/mq/endpoints_list.py

Lines changed: 0 additions & 27 deletions
This file was deleted.

SoftLayer/CLI/mq/ping.py

Lines changed: 0 additions & 25 deletions
This file was deleted.

SoftLayer/CLI/mq/queue_add.py

Lines changed: 0 additions & 46 deletions
This file was deleted.

0 commit comments

Comments
 (0)