summaryrefslogtreecommitdiff
path: root/designateclient/cli
Commit message (Collapse)AuthorAgeFilesLines
* server-get/update show wrong values about 'id' and 'update_at'miaoyuliang2018-07-251-3/+3
| | | | | | | | | While process 'designate server-get' and 'designate server-update', the 'id' and 'update_at' values are wrong, they should be interchanged. Change-Id: Ibddf9cc9a018774ed229c0dfa81e705cd74704bc Closes-Bug: #1777576
* record-create/update: Account for priority being 0Alex Monk2016-09-131-2/+2
| | | | Change-Id: Ia791e602d217cbf21fc8b636b0688c012a538169
* Use osc_lib instead of cliffTang Chen2016-07-011-9/+7
| | | | | | | | | Base classes of commands are defined in cliff, but have been encapsulated again in osc-lib for all plugin clients. So use osc-lib instead of cliff. Change-Id: I9ec5dc794d8449bc3618889f68993cea734cb0a9
* Mark the v1 API Client as deprecatedGraham Hayes2016-06-291-1/+13
| | | | | | As the v1 API is scheduled for removal, we should warn users Change-Id: I6e2570db0dd392389cc54aee816ad8b9aee1a0dd
* Switch to keystoneauthClenimar Filemon2016-05-161-1/+1
| | | | | | | | | | | | This patch migrates designateclient to using keystoneauth Session instead of deprecated keystoneclient's Session and plugins. Also, this patch removes the old designateclient.auth module as it is not used anywhere else in the code base and its purpose is overridden by the fact that keystoneauth acts as an abstraction layer for authentication (handling requests and reauthentication internally). Change-Id: Ic3cc0fbb76977a04bab322ebcb1c818e75646772
* Add a missing whitespaceKATO Tomoyuki2015-12-171-1/+1
| | | | Change-Id: I6dacdbc9392c10512620b9f6676b6f69b2440616
* Pass OS_ENDPOINT_TYPE from shell to clientGraham Hayes2015-11-241-0/+1
| | | | Change-Id: I0e769b4e800b7e64df3d721c21d7a44f733e9f19
* Fix support for --os-endpointEndre Karlson2015-11-051-1/+2
| | | | | | Closes-Bug: 1469992 Change-Id: Ie63450a82f07da183756d1c04c34872f7e35d6c8
* Fixes error over quota updatesonu.kumar2015-10-141-0/+3
| | | | | | | | This patch adds --api-export-size option to quota update cli in designate client. Change-Id: I376a1fdb19c44796721adad766d74efbc793757c Closes-Bug: #1505951
* Add period in help messageAtsushi SAKAI2015-09-244-43/+43
| | | | | | | Command help message uses help and CLI-Reference generation. and in convention, help message stops with period ".". Change-Id: Ia42df8e65aa8ab44f15e28ee0e1753dc17086a48
* Added appropriate error message for designate clisonu.kumar2015-09-111-1/+4
| | | | | | | | | This patch adds appropriate error message for Exception generated when running cli without authentication and endpoint. Change-Id: I78fe2f8db9a2cfa716c0071a7da404817dd5fbdd Closes-Bug: #1490843
* Improve help stringsAndreas Jaeger2015-08-076-32/+32
| | | | | | | | | | Improve consistency of help strings - also with other python clients: * Add missing "." to sentences in shell.py, like the majority already was. * Use sentence capitalization for all help strings (compare with shell.py). Change-Id: Idb3c5ba5167efc8947b4f2e89ba1b4e3d1863e5e
* Solve some py3 compatibilty issuesPradeep Kumar Singh2015-07-241-3/+3
| | | | | | | 1. replaced dict.keys() with six.iterkeys(dict) 2. replaced map with six.moves.map Change-Id: I4b80e12a4686fd6f5857c2322de13b1245e72083
* Log error message from EndpointNotFound exceptionsFederico Ceratto2015-07-061-2/+2
| | | | | Change-Id: I1e87cea22d08c6591934ff79953e5adbd27e0064 Closes-Bug: 1268310
* Merge "Allow relative names in record-create"Jenkins2015-06-081-3/+18
|\
| * Allow relative names in record-createCedric Brandily2015-05-041-3/+18
| | | | | | | | | | | | | | | | Currently record-create requires absolute names. This change allows to provide relative (to the domain) names with the new option --relative. Change-Id: I78258ea734a4105fae8f9f3ef30fe86e018b5388 Closes-Bug: #1444452
* | Merge "Log a more informative error upon EndpointNotFound"Jenkins2015-05-261-0/+3
|\ \
| * | Log a more informative error upon EndpointNotFoundEndre Karlson2015-05-211-0/+3
| |/ | | | | | | Change-Id: I2e3886a66ae57e810db1b5b4cb197bc7b8c157ed
* | Move all_tenants and edit_managed attributes to designate ClientDavide Guerri2015-05-221-1/+3
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Initializing designate client with a pre-existing keystone session won't work as designate expects keystone session to have the 'all_tenants' and 'edit_managed' attributes: Example code: keystone_session = ksc_session.Session( auth=keystone_auth, verify=True, cert=my_cert ) than later: self._designate_client = designate_client( session=keystone_session, region_name=region_name ) with that code, wrap_api_call() will raise an exception: AttributeError: 'Session' object has no attribute 'all_tenants' Same goes for 'edit_managed'. This patch moves both attributes from Keystone session to designate Client. Closes-Bug: 1457821 Change-Id: I13d6c9ed46406fefc8cfa5de46811e4be009f1af
* Allow to use domain names instead of idsCedric Brandily2015-04-143-19/+36
| | | | | | | | | | Currently designate allows to identify a resource only by its id. This change allows to identify domains by name or id. This change defines the method find_resourceid_by_name_or_id which could be reused to identify other resources by name or id. Change-Id: I8e64cdbc5572623d05781d0c4e735ff0c429ea91 Closes-Bug: #1443858
* Fix if checking on ttl for Create/Update commandsEndre Karlson2015-01-292-4/+4
| | | | Change-Id: I13412fee6c71b00cd5e4bc2ca8c2074cc01fc6d0
* Move session creation up to shellEndre Karlson2014-11-131-24/+4
| | | | Change-Id: I65d3f37f60f97240b52b0234da6160121ec292e1
* sync and touch Commands Extend the base.DeleteCommandrjrjr2014-08-142-4/+4
| | | | | | | | | | | | | | | To allow the sync-all, sync-domain, sync-record, and touch-domain commands to display errors correctly, the classes for these commands now extend the base.DeleteCommand instead of the base.Command. The base.Command has no formatter. The base.DeleteCommand has the ShowOne formatter and does not show any messages when the command is successful, but shows errors when there is a failure. Change-Id: I92ca95f167fec9fb36880024e6c84284186126df Closes-Bug: #1357092
* Add support for quotas for v1 cli / bindingsEndre Karlson2014-08-011-0/+80
| | | | Change-Id: Id89fff58e1975fa84ae12a44ac2fd43cd2255b52
* Merge "Support Keystone V3 authentication"Jenkins2014-07-111-11/+15
|\
| * Support Keystone V3 authenticationKiall Mac Innes2014-07-071-11/+15
| | | | | | | | | | | | | | | | We now defer the majority of our auth to keystoneclient, rather than continuing to maintain our custom code. Change-Id: Ia8409940d3941bc82a8b54ec60e82efa6d043102 Closes-Bug: 1323435
* | Enabled hacking check H401Christian Berendt2014-07-107-27/+27
|/ | | | | | * [H401] Docstrings should not start with a space. Change-Id: I1fa248590c7e05ab92b30ae30af1cf107cdd3cc4
* Update hacking package, fix/ignore new style errorsJordan Cazamias2014-07-011-1/+3
| | | | | Change-Id: I49d26c3a9772c409b038b06e8256fb5823169c50 Implements: blueprint update-hacking
* Use six.add_metaclass instead of __metaclass__Christian Berendt2014-06-061-1/+2
| | | | | | | | | According to http://docs.openstack.org/developer/hacking/ it should be preferred to use six.add_metaclass instead of __metaclass__. Added new requirement six >= 1.6.0. Change-Id: Ic7e4f5cb03889cc6bfdb04a657d4654b5fedc985
* designate record-list should display record data1.0.3Marcus Furlong2014-04-161-1/+1
| | | | | | | | | | | | | | | | | | designate record-list currently only displays id, type and name. It would be very useful if the actual data was also displayed, as running a record-get on each id to obtain this information is very time-consuming. This patch improves the output so that it is in the following format: +--------------------------------------+------+-----------------------------+--------------+ | id | type | name | data | +--------------------------------------+------+-----------------------------+--------------+ | 8a6b789b-71bc-43b6-91eb-9a0790ee1052 | A | netapp-c1.rc.nectar.org.au. | 172.22.20.71 | | aa609885-3f8d-4ed6-9de4-3204448281e1 | A | netapp-c2.rc.nectar.org.au. | 172.22.20.72 | +--------------------------------------+------+-----------------------------+--------------+ Change-Id: I9ca85b64505d3331fd0bd458c31163cc243e7b34 Closes-Bug: #1308414
* Fix misspellings in python designateclientShane Wang2014-02-082-2/+3
| | | | | | | | | Fix misspellings detected by: * pip install misspellings * git ls-files | grep -v locale | misspellings -f - Change-Id: Ib47acd8a5e4b1b733e1d75b8995a14620f2c9627 Closes-Bug: #1257295
* Fix and enable gating on H306Dirk Mueller2013-12-166-0/+11
| | | | | | | | | H306, module imports should be in alphabetical order This hacking check actually improves readability quite a bit, as module imports can be sorted in groups (python stdlibs, external imports, in-module imports) Change-Id: I11dc9155fbfc84389f2a5956f393f705388f83ba
* Add touch-domain to CLIKiall Mac Innes2013-11-121-0/+35
| | | | Change-Id: I369051e7d7ba2c0819835dada3a13e54798a63ad
* Move "sync" commands out of Diagnostics and fix themKiall Mac Innes2013-11-122-43/+62
| | | | | | | | | This mirrors the layout on the server side. I don't consider this a breaking change, as the existing sync commands were broken to begin with. Change-Id: Id80e148e2a0218d6bd64673bb09c15ab0d98418b
* Added domain and record description editingGraham Hayes2013-10-302-0/+25
| | | | | Change-Id: I8cdf3b9fa986255a9c1787f4ed8375bded8ee062 Closes-Bug: 1213889
* Ensure TTL is treated as an int in the CLIKiall Mac Innes2013-10-271-1/+1
| | | | Change-Id: Icd6e56adb416946af98bcc1dd1fbbe16c2aef8c8
* Ensure Invalid JSON and errors during deletes are displayed correctlyKiall Mac Innes2013-10-141-2/+3
| | | | Change-Id: Iccd4ee10611cfa58a98618f29545d5b194edafa3
* Add a --insecure arg to ignore invalid SSL certsKiall Mac Innes2013-09-181-1/+2
| | | | Change-Id: I7350c2f9d8f857300784955b2b776f3f1dc69933
* Use Python 3.x compatible except construct.Dirk Mueller2013-09-041-1/+1
| | | | | | | Python 3.x deprecated the form "except x,y:". Switch usage to "except x as y:", which works with any Python version >= 2.6 Change-Id: Id276fdaee9e8753568227e638408e5bccff28e67
* Rename Moniker -> DesignateKiall Mac Innes2013-06-097-0/+645
Change-Id: Idf7153aa287adc874a2878dc829950fda52a4879