summaryrefslogtreecommitdiff
path: root/designateclient/v2/cli
Commit message (Collapse)AuthorAgeFilesLines
* Merge "Add hacking check for line continuation backslash"Zuul2023-02-212-14/+14
|\
| * Add hacking check for line continuation backslashMichael Johnson2023-02-132-14/+14
| | | | | | | | | | | | This patch adds a hacking check for line continuation backslashes and fixes the occurences that existed in the code. Change-Id: I13cd03e16698b7f1d8036815d12a665bd1156f2f
* | Add shared zone commands5.2.0Igor Malinovskiy2023-02-131-1/+132
|/ | | | | | | Co-Authored-By: Michael Johnson <johnsomor@gmail.com> Change-Id: Iea92371176d9126205384624a18a9097acb3daef Partial-Bug: #1714088 Depends-On: https://review.opendev.org/#/c/726334/
* Provide option for delete zonefiles on zone deleteManish Honap2023-01-302-0/+20
| | | | | | | | | | This commit provides an header option (hard-delete) for deletion of zonefiles on backend as part of zone delete API. Main patch (in Designate) is: https://review.opendev.org/c/openstack/designate/+/835317 Change-Id: I0080c028466d809f4f5118fec05d9e46b2dfce84
* Include SECONDARY zones into list command outputEkaterina Chernova2022-07-141-1/+1
| | | | | | | | | | PRIMARY zone type is set by default, so SECONDARY zones were not included in the command output. Now all types are in output by default and specific type can be passed as an argument like before Closes-Bug: #1940544 Change-Id: Idbba68ebd3f74bde74f0b50ffcb233673dff2303
* Fix quota list command for non-admin users5.0.0Dr. Jens Harbott2022-07-071-2/+3
| | | | | | | | Due to a logic error the all-projects header was being set if no explicit project was being specified. Closes-Bug: 1980942 Change-Id: I3c492b4ffd1b75a42a6a152b1dea219e4986f411
* Fix missing --target-project-id for transfer reqMichael Johnson2022-06-031-0/+7
| | | | | | | | | | | | The zone transfer request set command was missing the --target-project-id option so you cannot change the target project ID of a zone transfer request after creation with the CLI. This option is supported by the API and documented in the API reference guide. This patch adds this option. Closes-Bug: #1977625 Change-Id: Idd570a5aef57c06971db2450fdfb823cf0c07bfd
* Remove edit-managed from unsupported commandsMichael Chapman2021-11-252-2/+4
| | | | | | | | | | | | --edit-managed sets a header x-designate-edit-managed-records that indicates the current request wishes to modify managed records such as the SOA or NS record created for a zone. This is only used by the recordset update and delete API methods so can be removed elsewhere. Closes-Bug: 1928411 Change-Id: I18bfdae045c8b5e589075865eb024cee4852d8f9
* Clarify that name or ID can be used on TLDsMichael Johnson2021-10-201-3/+3
| | | | | | | | | We had a question about whether the TLD name could be used as the "id" positional argument when show/set/delete a TLD. This patch clarifies that names or IDs will work with those commands in the OpenStack client. Change-Id: I93952596f3c82ae37d903a8ea4dd8700ae8fc314
* Remove six and update lower-constraints appdirsMichael Johnson2021-03-269-41/+32
| | | | | | | | | | This patch removes the use of "six" as the package declares only python3 support. It also updates the appdirs lower-constraint to 1.4.0 to support pip. This version is available on both centos8 and focal. It also removes the linter related packages from lower-constraints. Change-Id: I9337f1998749bc40737f2f0e2dcc406b6f3a0ddf
* Merge "Fixed zone transfer accept list command"Zuul2021-03-091-1/+1
|\
| * Fixed zone transfer accept list commandMike Durnosvystov2020-10-231-1/+1
| | | | | | | | | | Change-Id: If7ba1fc9dd3f9d67a49ad3b8ae4c0e0f9733195b Closes-Bug: 1901172
* | Add choices to `--type` command line argumentNicolas Bock2020-10-131-2/+7
|/ | | | | | | | | We only allow `PRIMARY` and `SECONDARY` zones. Instead of testing for either one of those two choices later in the code, we can offload this test to the parser. Change-Id: I8244e13303646e6686e4233e1edbd2bbc788e054 Signed-off-by: Nicolas Bock <nicolas.bock@canonical.com>
* Increase hacking versionNicolas Bock2020-10-101-1/+1
| | | | | | | | | | | Increase the hacking version in test-requirements to match the version used in the `designate` project. This change fixes a few errors that the more recent `pyflakes` flags. Change-Id: If7afefde0f33161016a27774021d27239c642eb5 Co-Authored-By: Michael Chapman <woppin@gmail.com> Signed-off-by: Nicolas Bock <nicolas.bock@canonical.com>
* Fix "recordset list --all-projects" in interactive OSCJens Harbott2019-09-181-1/+1
| | | | | | | | | Class variables get re-used when multiple commands are executed in a row within a single OSC interactive session. So we need to take a copy before modifying in order to avoid unwanted side-effects. Change-Id: I9716014d65a3f649c23eb78faca2cb6dbf5eb5db Related-Bug: 1844028
* Fix "zone list --all-projects" in interactive OSCJoseph M2019-09-161-1/+1
| | | | | | | | | | | | The current zone list function does not check to see if project_id is already a column to be output when adding it during an --all-projects list. This causes a duplicate field name to be added which is then passed to prettytables which subsequently throws an exception. Create a copy of the columns list so it is not appended to with every command. Change-Id: I5f62500086a807d5082221993c3b491f3b6a1db0 Closes-Bug: #1844028
* Merge "Check item is one of six.string_types not just str"Zuul2018-08-112-3/+2
|\
| * Check item is one of six.string_types not just strGraham Hayes2018-04-162-3/+2
| | | | | | | | | | Change-Id: I343d9f6bdb3509256191a44e686f24e0ebeb5d22 Closes-Bug: #1762612
* | Fix copy-pasta in quota command descriptionsBen Nemec2018-06-291-2/+2
|/ | | | | | | | These seem to have been copied from the blacklist command and don't make sense for quotas. They also appear in the openstackclient help output which is confusing. Change-Id: Ib5d2c0fd7da8cb18e230d84c5f344217ad853da7
* Improve the RecordSet Update UIGraham Hayes2018-02-121-2/+15
| | | | | | | | | | | This adds the logic introduced in I8fefd9d0f104170d50c5d5dc3cbcc53facda9baf to the "recordset set" command as well. This helps with the consistancy, and fixes some of the same issues in the set command. Change-Id: Ib943ed0eea436ad1a7ad0c3717f0fb6bd6b5b3f0
* Improve recordset create UIJens Harbott2017-12-071-3/+17
| | | | | | | | | | | | | | The current implementation has '--records' as a quasi-positional argument, with the nargs='+' parameter it can only be used at the end of the command, which is confusing to users and doesn't comply with the help message. Add a new option '--record' that takes only exactly one record as parameter and can be repeated when multiple records are present. Deprecate the old option so it can be removed in the future. Change-Id: I8fefd9d0f104170d50c5d5dc3cbcc53facda9baf Closes-Bug: 1736161
* Add tsig key support to python-designateclientRudolf Vriend2017-07-071-0/+170
| | | | | | | | | | This fix adds support for the designate tsig keys api to python-designateclient. It will add tsigkey related crud commands to the openstackclient. Change-Id: I84336c3aca85ca62771fd2115481eda32ee980d2 Closes-Bug: #1702506
* Add attribute support to create zone cliGraham Hayes2017-01-311-0/+16
| | | | | | also format attributes for cli display Change-Id: Ia338f607e6d4b70610132ab66e15381981beb038
* Merge "Resolve FloatingIP PTR records clis argument's description"Jenkins2016-08-241-3/+6
|\
| * Resolve FloatingIP PTR records clis argument's descriptionsonu.kumar2016-08-081-3/+6
| | | | | | | | | | Change-Id: Id284e43a53dddd158c1be3768422df42d49efeca Closes-Bug: #1600775
* | Fix clis related to FloatingIP's ptr recordssonu.kumar2016-08-081-0/+7
|/ | | | | Change-Id: Ie39f1e86716a096402aafe814fcde821e66dbc5b Closes-Bug: #1600781
* Merge "Add quota set / list / reset commands"2.2.0Jenkins2016-07-141-0/+133
|\
| * Add quota set / list / reset commandsGraham Hayes2016-06-291-0/+133
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Added: openstack dns quota - list - set - reset All sub commands can be scoped to a project using --project-id If the --project-id does not match the current project id it will set X-Auth-All-Projects:True This cannot be a standard quota command as osc does not allow us to access that command Change-Id: I8e22535be042608022ef1d1cb3866e7aa5324e84 Depends-On: I7a0b828824ad6f274d922748f5f9a68157cd939a Related-Bug: #1587927
* | Use osc_lib instead of cliffTang Chen2016-07-016-53/+43
| | | | | | | | | | | | | | | | | | 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
* | Merge "Add global flags to cli"Jenkins2016-06-307-0/+242
|\ \ | |/
| * Add global flags to cliGraham Hayes2016-06-287-0/+242
| | | | | | | | | | | | This time, try not to break other peoples plugins Change-Id: I3ff6f584b0a5c89ac2c6f263549d2a8b74805572
* | Merge "Allow cli to query "v2/recordsets""Jenkins2016-06-291-3/+9
|\ \ | |/ |/|
| * Allow cli to query "v2/recordsets"Graham Hayes2016-06-091-3/+9
| | | | | | | | | | | | | | | | The allows users to list all recordsets in the system. running ``openstack recordset list all`` will show all rrsets Change-Id: Id47961c80484550c99c1834a554afe31165b69ca
* | Merge "Revert "Add Global Flags for filtering results""Jenkins2016-06-242-13/+0
|\ \
| * | Revert "Add Global Flags for filtering results"Ben Nemec2016-06-232-13/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Registering these options as global flags pollutes the global opt namespace and is masking plugin-specific options in other plugins. Partial-Bug: 1595616 This reverts commit 0b2b870237b6a332239dcad73cd9cab2634cb44f. Change-Id: I7ef5c5511adc40d603374c4963ba22556f16252e
* | | Use osc-lib instead of openstackclientTang Chen2016-06-241-1/+1
|/ / | | | | | | | | | | | | | | | | | | | | osc-lib is a package of common support modules for writing OSC plugins. All common functions, classes such as exceptions, utils, logs and so on have been moved from openstackclient to osc-lib. So use osc-lib instead of openstackclient. Change-Id: I4377951ba0b58ea94a43c688b66c0b87dda7225d
* | Merge "Add `openstack zone transfer accept list` cli to designateclient"Jenkins2016-06-171-0/+21
|\ \
| * | Add `openstack zone transfer accept list` cli to designateclientsonu.kumar2016-06-141-0/+21
| |/ | | | | | | | | | | | | | | | | | | | | This patch add cli for listing accepted zone ownership transfer and corresponding test cases. Related-Bug: #1499539 Change-Id: I3eec36c73b2dacd4eed3b8578c4d51593b43104d depends-on: I3dc042f666be43649bb3dec6e92cc67d1c32578f
* | Add Global Flags for filtering resultsGraham Hayes2016-06-012-0/+13
|/ | | | | | | | | | In the HTTP Headers --all-projects sets "X-Auth-All-Projects:True" --edit-managed sets "X-Designate-Edit-Managed:True" --sudo-project-id <id> sets "X-Auth-Sudo-Project-ID:<id>" Change-Id: I4985a1a2cd75da4311e819afdbfdafcc8a023c56
* Add support for service statusEndre Karlson2016-04-121-0/+87
| | | | | Change-Id: I5349524d262ffcadf88b3c914f187dfc26563156 Depends-On: Iaf10d8486ac8015ecf9f394dfbf074bfb863fb78
* Merge "Implement zone import"Jenkins2016-04-061-0/+97
|\
| * Implement zone importRahman Syed2016-03-301-0/+97
| | | | | | | | | | | | | | | | | | | | | | Zone import commands (create, list, show, delete) are missing from the python-designateclient. This change includes implementation, as well as unit tests and functionaltests. Change-Id: I635431b5ef11989247e8d185ad692e4fee9bebba Closes-Bug: #1550532
* | Show responses on zone and recordset deletesPaul Glass2016-03-302-5/+10
| | | | | | | | Change-Id: I1b15c64bac1bc495fe7aecbcf08c28b8ea41b5a7
* | Add filtering to recordsets CLIGraham Hayes2016-03-291-2/+41
| | | | | | | | | | | | Also cleaned up the display of records in the list view. Change-Id: I6d05dc387a9653c49bebb9d5f63282b8002ec32a
* | Show "status" and "action" for recordsetsGraham Hayes2016-03-291-1/+1
| | | | | | | | Change-Id: I9d3cfdccf1681f334908034f6aa9a935d0ca43c5
* | Fixes 'openstack tld list' command's exceptionsonu.kumar2016-03-291-1/+10
|/ | | | | | | | | | | | Earlier while executing "openstack tld list" command the designate client was not able to list the created tlds and was resulting an exception. This patch fixes those issues and makes designateclient to list all the created tlds. Change-Id: I762cf269eb8396b20915b98709f445acaa3f7649 Closes-Bug: #1557364
* Implement zone exportRahman Syed2016-03-231-32/+111
| | | | | | | | | | | Zone export commands (create, list, show, delete, showfile) are missing from the python-designateclient. This change includes implementation, as well as unit tests and functionaltests. Change-Id: I957946d739bceea1074e2fda2ce7f841143b0611 Partial-Bug: #1550532
* Allow the OSC CLI Plugin to walk pages2.0.0Graham Hayes2016-01-275-5/+11
| | | | | Change-Id: I5587ad816c99dc159f2c1a5660450a631ddecd6e Closes-Bug: #1538611
* Merge "Show output on transfer accept"Jenkins2016-01-261-1/+1
|\
| * Show output on transfer acceptEndre Karlson2016-01-121-1/+1
| | | | | | | | Change-Id: I39576c9b845a6a804e5e51d3fb0f5b05c5a3f56c