19 Commits

Author SHA1 Message Date
ji-xuepeng
b831f1899a remove unused LOG
This is to remove unused LOG to keep code clean.

Change-Id: I60706c20fff4c82761be21cf2487c03a69160c41
2016-07-10 00:07:47 +08:00
Akihiro Motoki
787ba9250b Use _i18n instead of i18n
It is suggested to use _i18n.py per oslo.i18n document.
http://docs.openstack.org/developer/oslo.i18n/usage.html

neutronclient.i18n is now a wrapper module which emits
the derecation warning. It is because might be used in
implementation of the client extensions in other repositories.

Closes-Bug: #1519493
Change-Id: I44969daeedc9a66dd9ad5bf80617516faf245ecc
2015-12-24 14:44:44 +09:00
Elena Ezhova
54a4aea969 Remove XML support
As XML support has been removed from neutron, there is no need
to keep it in client.

Dropped XML serializer and deserializer and deprecated "request-format"
CLI option, making JSON the default and the only supported request
format.

DocImpact

Change-Id: I88b0fdd65a649694252d5ff43a174e75026df5b1
Closes-Bug: #1380787
2015-12-09 11:09:26 +03:00
Doug Hellmann
d9113f17ac Drop use of 'oslo' namespace package
The Oslo libraries have moved all of their code out of the 'oslo'
namespace package into per-library packages. The namespace package was
retained during kilo for backwards compatibility, but will be removed by
the liberty-2 milestone. This change removes the use of the namespace
package, replacing it with the new package names.

The patches in the libraries will be put on hold until application
patches have landed, or L2, whichever comes first. At that point, new
versions of the libraries without namespace packages will be released as
a major version update.

Please merge this patch, or an equivalent, before L2 to avoid problems
with those library releases.

Blueprint: remove-namespace-packages
https://blueprints.launchpad.net/oslo-incubator/+spec/remove-namespace-packages

Change-Id: I474dcd9de166b00d02b3586858a28797e97a3231
2015-05-06 19:39:35 +00:00
Akihiro Motoki
631e5519ca Fix E265 block comment should start with '# '
All E265 errors are now fixed and remove it from ignore list.

Change-Id: I09ada4cc0f33cae5da4cbc29a4e843e3ce14e111
2015-03-23 15:46:57 +09:00
shihanzhang
aed3faf074 Fix TypeError for six.text_type
Change-Id: Ib0d668a6ddadb0fec60c964dc5e1e1bd83b74be4
Closes-Bug: #1408529
2015-01-08 12:08:17 +08:00
Akihiro Motoki
9c464ba53f Use graduated oslo libraries
The following libraries have been graduated:
- gettextutils -> oslo.i18n
- jsonutils -> oslo.serialization
- strutils, timeutils -> oslo.utils

Add neutronclient.i18n module as oslo.i18n adapter.

Remove openstack.common related files completely
because neutronclient no longer use any oslo-incubator modules.

Closes-Bug: #1382017
Change-Id: Ib7ebcb691a12858049baab3b122f95bf43038f18
2014-10-21 15:37:00 +09:00
Jaume Devesa
64b2d8a01b Fix E129 hacking check
Remove E129 from the ignored checks and fix them

Change-Id: Ibd3a98ceb173e9a1fa106ac6c4ecdebb1a9a1e4f
2014-10-17 13:01:59 +02:00
Ilya Shakhat
9bf8b71e33 Fix Py3 compatibility issues
* Replace of urllib by six urlparse
* Convert dict keys into list to be able to retrieve the first element
* Use integer division for integers
* Use int instead of long in XML serialization/deserialization under Py3

Co-author: Cyril Roelandt <cyril.roelandt@enovance.com>

Change-Id: Ia79c831310775bf1c3dbec06010f8949c3a73887
2014-09-16 12:57:14 +04:00
Stanislav Kudriashev
48da7226c0 Unify doc-strings format
Change-Id: If6cf2caeae294db30a8988ab861441211b651580
2014-08-28 11:42:12 +03:00
Ilya Shakhat
84fb8102d9 Python 3: compatibility of StringIO() and dict.iterkeys()
Change-Id: Ia671cacbf1852984c41b374986cc2e9581247b99
2014-07-25 12:29:21 +04:00
Christian Berendt
2e6f238199 Changed 'xml' to 'XML'
Like Lana Brindley mentioned in https://review.openstack.org/#/c/102900/
'xml' should be 'XML' instead.

Change-Id: If500ec9325eff98d58810b69c6fc84211e20638a
2014-06-27 13:55:20 +02:00
Christian Berendt
73e608d354 debug level logs should not be translated
According to the OpenStack translation policy available at
https://wiki.openstack.org/wiki/LoggingStandards debug messages
should not be translated. Like mentioned in several changes in
Nova by garyk this is to help prioritize log translation.

Change-Id: I639624cbe64749085654b32ac85596fdae577230
2014-06-23 10:58:36 +00:00
Akihiro Motoki
ecad086e59 Rearrange neutronclient exceptions for more easy use
- Map exceptions from neutron server into corresponding client
  exceptions automatically (without exception mapping dict).
  An exception from Neutron server 'SomeException' will be
  mapped to an exception 'SomeExceptionClient' ('Client' suffix)
  if it is defined.

- If no corresponding exception is defined in client side,
  an exception per response code will be used. Previously
  NeutronClientException was used for all cases and a user
  of client library cannot know exception type without
  checking exception.status_code. It allows client lib users
  (such as Horizon) to handle exceptions more easily.

- All exceptions from client libarry inherit NeutronClientException
  and all CLI related exceptions inherits NeutronCLIError now.

- Remove unused exceptions (including Quantum v1 related)
- MalformedRequestBody is renamed to MalformedResponseBody
  because it is raised in deserializer and deserializer is
  used to parse not request but response.

Closes-Bug: #1296148
Change-Id: I99b9560b3afaf5884fd00353323267da450338fa
2014-03-24 06:02:08 +09:00
liu-sheng
e955a1fc80 Remove vi modelines
We don't need to have the vi modelines in each source file,
it can be set in a user's vimrc if required.

Change-Id: Ic30e91df1b0e25beda9b8d8c19be58573cdae4f6
Closes-Bug: #1229324
2014-02-10 17:00:28 +08:00
shreeduth-awasthi
119a3dfac2 Misc typo in neutronclient
Added a missing description for parameter node in the
docstring of function _from_xml_node

Change-Id: I4534dbf43e45b94d44d0c53d910987b8fad1cbdf
Closes-Bug: #1255994
2013-12-06 00:32:52 +05:30
Sean Winn
1b36606b39 Change copyright headers from LLC to Foundation
Closes-Bug: #1214176
Change-Id: I8c8095860f6e17652bb5f52583008774180337f6
2013-10-04 02:37:37 +09:00
Swaminathan Vasudevan
653c4b1949 VPN as a Service (VPNaaS) Client API
Implements:blueprint VPNaaS-Python-API

This provides the basic Neutron Client
CLI for configuring:
* VPNService
* IKEPolicy
* IPsecPolicy
* IPsecSiteConnection

Change-Id: I72ab670d23109a4bb1174acf48e4b77958e855e1
2013-08-26 09:11:44 -07:00
Mark McClain
93ac15bfeb Rename quantumclient to neutronclient
Implements Blueprint: remove-use-of-quantum

Change-Id: Idebe92d56d277435ffd23f292984f9b8b8fdb2df
2013-07-03 11:56:44 -04:00