Skip to content

Commit 8e25017

Browse files
authored
Merge pull request #1 from softlayer/master
Fork update
2 parents 33f3887 + 10600bf commit 8e25017

391 files changed

Lines changed: 23122 additions & 13645 deletions

File tree

Some content is hidden

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

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ Thumbs.db
55
._*
66
*.pyc
77
.coverage
8+
htmlcov
89
cover/*
910
.tox
1011
docs/_build/*

.travis.yml

Lines changed: 24 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,25 @@
11
language: python
2-
python: 2.7
3-
env:
4-
- TOX_ENV=py26
5-
- TOX_ENV=py27
6-
- TOX_ENV=py32
7-
- TOX_ENV=py33
8-
- TOX_ENV=pypy
9-
- TOX_ENV=pep8
10-
install: pip install tox --use-mirrors
11-
script: tox -e $TOX_ENV
2+
sudo: false
3+
matrix:
4+
include:
5+
- python: "2.7"
6+
env: TOX_ENV=py27
7+
- python: "3.3"
8+
env: TOX_ENV=py33
9+
- python: "3.4"
10+
env: TOX_ENV=py34
11+
- python: "3.5"
12+
env: TOX_ENV=py35
13+
- python: "pypy"
14+
env: TOX_ENV=pypy
15+
- python: "2.7"
16+
env: TOX_ENV=analysis
17+
- python: "2.7"
18+
env: TOX_ENV=coverage
19+
install:
20+
- pip install tox
21+
- pip install coveralls
22+
script:
23+
- tox -e $TOX_ENV
24+
after_success:
25+
- if [[ $TOX_ENV = "coverage" ]]; then coveralls; fi

CHANGELOG

Lines changed: 201 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,209 @@
1+
5.1.0
2+
3+
* Added block storage functionality. You can order, list, detail, cancel volumes. You can list and delete snapshots. You can also list ACLs for volumes.
4+
5+
* Added functionality to attach/detach devices to tickets
6+
7+
* Virtual list now lists users and passwords for all known software
8+
9+
* Fixes bug with `vlan detail` CLI command
10+
11+
5.0.1
12+
13+
* Adds missing depdendency that was previously pulled in by prompt_toolkit
14+
15+
* Fix a bug by updating the CDN manager to use the new purge method
16+
17+
* Fixes bug that occured when iscsi listings with resources have no datacenter
18+
19+
5.0.0
20+
21+
* Adds a shell (accessable with `slcli shell`) which provides autocomplete for slcli commands and options
22+
23+
* Move modifying nic speed to `slcli virtual edit` and `slcli hardware edit` instead of having its own command
24+
25+
* How filters work with `slcli call-api` has changed significantly. Instead of accepting JSON, it now accepts an easier-to-use format. See `slcli call-api -h` for examples
26+
27+
* Adds manager for object storage
28+
29+
* 'virtual' and 'hardware' are preferred over 'vs' and 'server' in the CLI
30+
31+
* Improved REST transport support
32+
33+
* Many bug fixes
34+
35+
4.1.1
36+
37+
* Fixes to work with Click v5
38+
39+
* Re-adds `--no-public` option to only provision private interfaces with servers via `slcli server create`
40+
41+
* Removes non-functional `--vlan-public` and `--vlan-private` from `slcli server create`
42+
43+
* VSManager.wait_for_ready will now behave as it is documented to behave.
44+
45+
4.1.0
46+
47+
* Adds a shell which provides a shell interface for `slcli`. This is available by using `slcli shell`
48+
49+
* `slcli vs create` and `slcli server create` will now prompt for missing required options
50+
51+
* Fixes `slcli firewall add` command
52+
53+
* Handles case where `slcli vs detail` and `slcli server detail` was causing an error when trying to display the creator
54+
55+
* Fixes VSManager.verify_create_instance() with tags (and, in turn, `slcli vs create --test` with tags)
56+
57+
* Fixes `vs resume` command
58+
59+
* Updates hardware ordering to deal with location-specific prices
60+
61+
* Fixes several description errors in the CLI
62+
63+
* Running `vs edit` without a tag option will no longer remove all tags
64+
65+
* Adds editing of hardware tags
66+
67+
4.0.4
68+
69+
* Fixes bug with pulling the userData property for the virtual server detail
70+
71+
* Fixes a class of bugs invloving unicode from the API
72+
73+
4.0.3
74+
75+
* Fixes bug with `slcli vs ready` command
76+
77+
* Fixes bug with `slcli loadbal service-add` command
78+
79+
* Fixes bug with `slcli vlan list` with vlans that don't have a datacenter
80+
81+
* Improves validation of virtual server and hardware create commands
82+
83+
4.0.2
84+
85+
* Fixes a bug that breaks user confirmation prompts
86+
87+
* Fixes general issue with sorting on certain row types in the CLI
88+
89+
* Fixes image capture for Windows guests
90+
91+
92+
4.0.1
93+
94+
* Fixes bug in `sl setup` command not properly defaulting to current values.
95+
96+
* Fixes bug where turning off compression headers would still send compression headers.
97+
98+
* Reverts to using ids over global identifiers for `sl vs list` and `sl server list`.
99+
100+
101+
4.0.0
102+
103+
* Because there are many changes between version 3 and version 4, it is strongly recommend to pin the version of the SoftLayer python bindings as soon as you can in order to prevent unintentional breakage when upgrading. To keep yourself on version 3, you can use this directive: softlayer>=3,<4. That can be used with pip (pip install softlayer>=3,<4), requirements in your setup.py and/or in your requirements.txt file.
104+
105+
* CLI: The command is renamed from `sl` to `slcli` to avoid package conflicts.
106+
107+
* CLI: Global options now need to be specified right after the `slcli` command. For example, you would now use `slcli --format=raw list` over `slcli vs list --format=raw`. This is a change for the following options:
108+
* --format
109+
* -c or --config
110+
* --debug
111+
* --proxy
112+
* -y or --really
113+
* --version
114+
115+
* API: The hardware manager has a significant update to how place_order() works. It will now only support the fast server provisioning package which has presets for options like CPU, Memory and disk.
116+
117+
* API: The client transport is now pluggable. If you want to add extra logging or accounting, you can now subclass or wrap softlayer.transports.XmlRpcTransport in order to do so. A good example of that is done with softlayer.transports.TimingTransport.
118+
119+
* API: Removed deprecated SoftLayer.CCIManager.
120+
121+
* API: Adds virtual server rescue command to SoftLayer.VSManager
122+
123+
* API+CLI: Adds ability to import virtual images from a given URI. The API only supports importing from a swift account using 'swift://'. For more details, see http://developer.softlayer.com/reference/services/SoftLayer_Virtual_Guest_Block_Device_Template_Group/createFromExternalSource.
124+
125+
* CLI: A `--fixtures` global flag was added to pull from fixture data instead of the API. This is useful for discovery, demonstration and testing purposes.
126+
127+
* CLI: A `--verbose` or `-v` flag was added to eventually replace `--debug`. To make a command more verbose, simply add more `-v` flags. For example `sl -vvv vs list` will be the most verbose and show everything down to request/response tracing.
128+
129+
* CLI: Significant changes were done to the CLI argument parsing. Docopt was dropped in favor of click. Therefore, some subtle differences which aren't documented here may exist.
130+
131+
* CLI: Credentials can now be requested using `sl vs credentials <identifier>`, `sl hardware credentials <identifier>` and `sl nas credentials <identifier>` for virtual servers, hardware servers and NAS accounts respectively.
132+
133+
* CLI: Adds virtual server rescue command, `sl vs rescue <identifier>`
134+
135+
136+
3.3.0
137+
138+
* CLI+API: Load balancer support
139+
140+
* CLI: More detail added to the `sl image detail` and `sl image list` commands
141+
142+
* CLI: Adds command to import DNS entries from BIND zone files
143+
144+
* CLI+API: Adds support for booting into rescue images for virtual servers and hardware
145+
146+
* API: Adds ability to order virtual and hardare servers from a quote to the ordering manager
147+
148+
* CLI: Fixes bug with `sl server list-chassis` and `sl server list-chassis`
149+
150+
* API: Restructure of the way custom authentication can be plugged in the API client
151+
152+
* Several other bug fixes
153+
154+
3.2.0
155+
156+
* CLI+API: Added firewall manager and CLI module
157+
158+
* CLI+API: Added iscsi manager and CLI module
159+
160+
* API: Added ability to create multiple virtual servers at once to VSManager
161+
162+
* API: Added OrderingManager. Remove hard-coded price IDs
163+
164+
* Fixed several small bugs
165+
166+
3.1.0
167+
168+
* CLI+API: Added CDN manager and CLI module
169+
170+
* CLI+API: Added ticket manager and CLI module
171+
172+
* CLI+API: Added image manager and improves image CLI module
173+
174+
* CLI+API: Added the ability to specify a proxy URL for API bindings and the CLI
175+
176+
* API: six is now used to provide support for Python 2 and Python 3 with the same source
177+
178+
* CLI+API: Added ability to resize a virtual machine
179+
180+
* CLI+API: Implemented product name changes in accordance with SoftLayer's new product names. Existing managers should continue to work as before. Minor CLI changes were necessary.
181+
182+
* CLI+API: Added firewall manager and CLI module
183+
184+
* CLI+API: Added load balancer manager and CLI module
185+
186+
* Many bug fixes and minor suggested improvements
187+
188+
1189
3.0.2
2190

3191
* CLI+API: Simplified object mask reformatting and added support for more complex masks.
4-
192+
5193
* CLI: Fixed the sl bmc create --network argument.
6-
194+
7195
* CLI+API: Improved output of the message queue feature and fixed some minor bugs.
8-
196+
9197
* CLI: Fixed an error when using --test and ordering a non-private subnet.
10-
198+
11199
* API: Fix to prevent double counting results in summary_by_datacenter().
12-
200+
13201
* CLI+API: Added IPMI IP address to hardware details.
14-
202+
15203
* CLI: Added support for ordering multiple disks when creating a CCI.
16-
204+
17205
* API: Added flag to disable compression on HTTP requests.
18-
206+
19207
* CLI: Added CIDR information to subnet displays.
20208

21209
3.0.1
@@ -85,13 +273,13 @@
85273
* Consistency changes/bug fixes
86274

87275
* Added sphinx documentation. See it here: https://softlayer-api-python-client.readthedocs.org
88-
276+
89277
* CCI: Adds Support for Additional Disks
90-
278+
91279
* CCI: Adds a way to block until transactions are done on a CCI
92-
280+
93281
* CLI: For most CCI commands, you can specify id, hostname, private ip or public ip as <identifier>
94-
282+
95283
* CLI: Adds the ability to filter list results for CCIs
96-
284+
97285
* API: for large result sets, requests can now be chunked into smaller batches on the server side. Using service.iter_call('getObjects', ...) or service.getObjects(..., iter=True) will return a generator regardless of the results returned. offset and limit can be passed in like normal. An additional named parameter of 'chunk' is used to limit the number of items coming back in a single request, defaults to 100

CONTRIBUTING.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Contributing to softlayer-python
2+
3+
We are happy to accept contributions to softlayer-python. Please follow the
4+
guidelines below.
5+
6+
* Sign our contributor agreement (CLA) You can find the [CLA here](./docs/cla-individual.md).
7+
8+
* If you're contributing on behalf of your employer we'll need a signed copy of our corporate contributor agreement (CCLA) as well. You can find the [CCLA here](./docs/cla-corporate.md).
9+
10+
* Fork the repo, make your changes, and open a pull request.
11+
12+
* Additional infomration can be found in our [contribution guide](http://softlayer-python.readthedocs.org/en/latest/dev/index.html)
13+
14+

CONTRIBUTORS

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
Amol Jadhav <[email protected]>
2+
Aparna Patil <[email protected]>
3+
Boden Russell <[email protected]>
4+
Brian Cline <[email protected]>
5+
chechuironman <[email protected]>
6+
Christopher Gallo <[email protected]>
7+
David Ibarra <[email protected]>
8+
Hans Kristian Moen <hans@ububeet.(none)>
9+
Jake Williams <[email protected]>
10+
Jason Johnson <[email protected]>
11+
Kevin Landreth <[email protected]>
12+
Kevin McDonald <[email protected]>
13+
Łukasz Oleś <[email protected]>
14+
Nathan Beittenmiller <[email protected]>
15+
Neetu Jain <[email protected]>
16+
Paul Sroufe <[email protected]>
17+
Phil Jackson <[email protected]>
18+
Robert Chumbley <[email protected]>
19+
Ryan Hanson <[email protected]>
20+
Scott Thompson <[email protected]>
21+
Sergio Carlos <[email protected]>
22+
Shane Poage <[email protected]>
23+
simplydave <[email protected]>
24+
SoftLayer <[email protected]>
25+
26+
Swapnil Khanapurkar <[email protected]>
27+
The SoftLayer Developer Network <[email protected]>
28+
Tim Ariyeh <[email protected]>
29+
Wissam Elriachy <[email protected]>

ISSUE_TEMPLATE

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
### Expected Behavior
2+
3+
### Actual Behavior
4+
5+
### Environment Information
6+
Operating System:
7+
softlayer-python version (`slcli --version`):

LICENSE

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2014 SoftLayer Technologies, Inc. All rights reserved.
1+
Copyright (c) 2016 SoftLayer Technologies, Inc. All rights reserved.
22

33
Permission is hereby granted, free of charge, to any person obtaining a copy
44
of this software and associated documentation files (the "Software"), to deal
@@ -16,4 +16,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1616
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1717
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
1818
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19-
THE SOFTWARE.
19+
THE SOFTWARE.

0 commit comments

Comments
 (0)