summaryrefslogtreecommitdiff
path: root/openstackclient/network/v2/router.py
Commit message (Collapse)AuthorAgeFilesLines
* Merge "Fix a spelling error"Jenkins2016-12-281-1/+1
|\
| * Fix a spelling errorJingLiu2016-12-261-1/+1
| | | | | | | | Change-Id: Ic14c769d99986d5c51d26fc276f4d47d6fba3265
* | Merge "Introduce overwrite functionality in ``osc router set``"Jenkins2016-12-211-12/+15
|\ \
| * | Introduce overwrite functionality in ``osc router set``Reedip2016-12-191-12/+15
| | | | | | | | | | | | | | | | | | | | | | | | The overwrite functionality allows user to overwrite the routes of a specific router. Change-Id: I8d3cfe5cab2ffbfa046371c3adcd2cf446c91cbc partially-implements: blueprint allow-overwrite-set-options
* | | Add support for clearing router gatewayReedip2016-12-191-0/+7
|/ / | | | | | | | | | | | | | | | | This patch adds the support to clear the gateway information from a router. Change-Id: I446c556750f080a6fc21fea8f531fd71838d648a Implements: blueprint neutron-client-advanced-router Partially-Implements: blueprint network-commands-options
* | Merge "Add support for setting router gateway"Jenkins2016-12-191-4/+54
|\ \
| * | Add support for setting router gatewayReedip2016-12-171-4/+54
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds the support to set the gateway information for a router. Implements: blueprint neutron-client-advanced-router Partially-Implements: blueprint network-commands-options Change-Id: Ifb5a4d1965cd7e75c0c8cf2cfb677e0628b699dc Depends-On: I2bda0dd40afd64b6cecca5f64ef2326bda4fac92
* | | SDK Refactor: Prepare router commandsYan Xing'an2016-12-121-4/+17
| |/ |/| | | | | | | | | | | | | | | | | Prepare the OSC "router" commands for the SDK refactor. See [1] for details. [1] https://etherpad.openstack.org/p/osc-network-command-sdk-support Change-Id: I2fa12943a65e3981b924e6cea9ed041682ec54b2 Partially-Implements: blueprint network-command-sdk-support
* | Merge "Add '--project' and '--project-domain' options to os cmds"Jenkins2016-12-051-1/+14
|\ \
| * | Add '--project' and '--project-domain' options to os cmdsNam Nguyen Hoai2016-12-011-1/+14
| |/ | | | | | | | | | | | | | | | | | | | | | | | | This patch added '--project' and '--project-domain' options to filter subnets resulted by 'os subnet list', 'os floating ip create' and 'os security group list' commands. Co-Authored-By: Ha Van Tu <tuhv@vn.fujitsu.com> Change-Id: I727663d49ffa6aa042fdeb60797f18bb753b0372 Closes-Bug: #1613231 Closes-Bug: #1610909 Closes-Bug: #1613629 Partially-Implements: blueprint network-commands-options
* | Avoid duplicated project_id when show network resourcesjudy-yu2016-12-041-9/+10
|/ | | | | | | | | Project_id appear twice when show network resources. This patch check and not append if it already has one. Change-Id: I744988f3f52d4a744e397a6a82fefdc4c17eacbf Closes-Bug: #1636123 Partially-Implements: blueprint duplicated-project-id
* translate all command help strings3.4.0Steve Martinelli2016-11-171-10/+10
| | | | | | | | | | | | | | Leverage the new cliff command class attribute (_description) to get the help of a command, this allows us to mark strings for translation. We could not do this before since the help was grabbed from the docstring. This also depends on a new release of cliff and a bump to the minimum level in osc's requirements. Closes-Bug: 1636209 Depends-On: Id915f6aa7d95a0ff3dc6e2ceaac5decb3f3bf0da Change-Id: I8673080bb5625e8e3c499feaefd42dfc7121e96f
* Add filtering options --name,--enable,--disable to router listYi Zhao2016-10-311-1/+28
| | | | | | Change-Id: I171b6be4501b02c3df66589c45177200919117db Closes-Bug: #1637945 Partially-Implements: blueprint network-commands-options
* Add support make a router HAReedip2016-10-161-5/+17
| | | | | | | | | | | Currently router set CLI does not provide the support make a router highly available. The following patch enables the same. Checking for setting a router as HA is left on the neutron server itself. Partially-Implements: blueprint network-commands-options Change-Id: I0d0548cf037a14e5ccb2f732918ee9d1f63f43b4 Closes-Bug:#1631492
* Fix router unset --route optionChoe, Cheng-Dae2016-10-101-2/+1
| | | | | | | | | Fix the "--route" option one the "os route unset" command. The option did not convert gateway to nexthop which results "Router does not contain route" error. Change-Id: Ia57bc7ea77ad7c6030535180a6ce42b4928c9e56 Closes-Bug: 1631471
* Add --ha option to os router create commandNam Nguyen Hoai2016-10-011-2/+8
| | | | | | | | This patch added --ha option which the 'os router create' command was missed. Change-Id: I77635fb17af32beb0d8ed9aa080ef79285719fdc Closes-Bug: #1610161
* Merge "Add --description to Neutron commands"Jenkins2016-09-231-1/+12
|\
| * Add --description to Neutron commandsAnkur Gupta2016-09-231-1/+12
| | | | | | | | | | | | | | | | | | | | | | | | Added simple option for floating ip description when creating a floating ip. Added option for create and set router as well. Partially Implements: blueprint neutron-client-descriptions Partially Implements: blueprint network-commands-options Change-Id: Ib8cd8af449e9ff33b980017b2527a6b196894a00
* | Use correct router add/remove interface methodsrabi2016-09-211-4/+4
|/ | | | | | | Use the correct openstacksdk method names. Change-Id: I07b463753eedf41f79c6e00e9224d0f7697a1bd3 Closes-Bug: #1625954
* router list if availability_zone ext not enabledUkesh Kumar Vasudevan2016-09-151-2/+9
| | | | | | | | | | | | | | when calling router list with --long OSC expects the availability_zone field in the response, even if this extension is not loaded: As per the document, http://developer.openstack.org/api-ref/networking/ v2/?expanded=list-routers-detail, The availability zone(s) for the router is available when router_availability_zone extension is enabled. Added testcase to test router list without availability zone Change-Id: Ic9abb06140eb310b797ade8b0463a876d8bea1b8 Closes-bug: #1622565
* Merge "Add command to unset information from Routers"Jenkins2016-06-281-0/+43
|\
| * Add command to unset information from Routersreedip2016-06-271-0/+43
| | | | | | | | | | | | | | | | This patch introduces the ``router unset`` command to clear the routing information from the routers. Implements: blueprint network-property-unset Change-Id: Iac8d32ca42fb28878805b4b58ab411b67fa6555b
* | Fix the problem of router deleteSongmingYan2016-06-241-1/+1
|/ | | | | | | Change "Remove" to "Delete" when using it in route-interface-delete. Change-Id: I9ebc38c787acbcb42d2f8efeee41f6cb943e4b9b Related-bug: #1560446
* Error handling of "router delete" commandHuanxuan Ao2016-06-201-2/+17
| | | | | | | | "Router delete" command supports multi deletion but no error handling. This patch add the error handling follow the rule in doc/source/command-error.rst Change-Id: I3376d957b4dc28d8282599dc909ecc5ed2b5f46a
* osc-lib: commandDean Troyer2016-06-131-1/+1
| | | | | | | Leave command.py and test_command.py as a sanity check during the deprecation period. Change-Id: I24e1b755cbfbcbcaeb5273ec0c9706b82384fc85
* osc-lib: parseractionsDean Troyer2016-06-131-1/+1
| | | | | | | Leave parseractions.py and test_parseractions.py as a sanity check during the deprecation period. Change-Id: I1a7469b6d872284e0276502a1a287bc0b87f8f83
* osc-lib: utilsDean Troyer2016-06-131-1/+2
| | | | | | | | Use osc-lib directly for utils. Leave openstackclient.common.utils for deprecation period. Change-Id: I5bd9579abc4e07f45219ccd0565626e6667472f7
* Merge "Make set/unset commands in network return normally when nothing ↵Jenkins2016-06-091-5/+0
|\ | | | | | | specified"
| * Make set/unset commands in network return normally when nothing specifiedTang Chen2016-06-081-5/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | set/unset commands should ends up normally instead of raising an exception when nothing is specified to modify. The main reason is: When nothing is specified, the command sets/unsets nothing, which is a normal behavior, and ends up normally. No API call fails. No error happens. This patch also adds a releasenote for both network, and volume commands that fix patch has been merged. Change-Id: I78c348066078decd350417a431f3b8bea8fcf9ef Partial-bug: #1588588
* | Fix networksunyajing2016-06-081-2/+2
|/ | | | | | | modify ``columns, data`` to ``(columns, data)`` in network, to keep code consistence. Change-Id: I0522c499d1651b4ea948bebccbdfd520934e8e6a
* Merge "Fix i18n support for help and error msg in network"Jenkins2016-05-161-1/+1
|\
| * Fix i18n support for help and error msg in networkTang Chen2016-05-161-1/+1
| | | | | | Change-Id: Iab0dc489226601ac4ff123bb758f84ff16989395
* | Added --no-route to the router set commandHideki Saito2016-05-161-2/+18
|/ | | | | | | | Deprecated --clear-routes Closes-Bug #1565034 Change-Id: I4a8975edc026aecd2a362fd1929c984cfab8ade6
* Fix router set --route optionRichard Theis2016-04-181-5/+21
| | | | | | | | | | | Fix the "--route" option on the "os router set" command. The option did not properly format the new routes to set which resulted in a "HttpException: Bad Request" error. In addition, the output for routes was fixed to improve readability and to align with the "--route" option on the "os router set" command. Change-Id: I9c514153ec201e2feae32be6dd281771e3298b9c Closes-Bug: #1564460
* State i18() changes and help messages improvedTang Chen2016-04-181-31/+32
| | | | | | | | Add _() to wrap help message in network commands. And also some improvement for help message. Change-Id: Ib3e498f5976ba98c44fd4eec2d1623263b3db53e Partial-bug: 1570924
* Doc: Unify repeatable option commentsTang Chen2016-04-121-5/+5
| | | | | | | | | | | | There are lots of "this option can be repeated" comments in the doc, which are not consistent to other similar docs. This patch changes them to the following format: "repeat option to do something" Change-Id: I54e01053091c428bf87bb36bb95f73a0b80ab6e7
* Merge "Add Subnet add/remove support to router"Jenkins2016-04-091-0/+54
|\
| * Add Subnet add/remove support to routerreedip2016-03-221-0/+54
| | | | | | | | | | | | | | | | | | | | | | The following patch adds the support for "router add subnet" and "router remove subnet" to the OSC as a part of migration of Neutron's CLI commands. Partial-Bug: #1546849 Implements: blueprint neutron-client-advanced-router Change-Id: Ia3770c41026194bdb1543d4e67446f81936d44d1
* | Merge "Add "router remove port" to osc"Jenkins2016-04-091-0/+24
|\ \ | |/
| * Add "router remove port" to oscreedip2016-03-211-1/+25
| | | | | | | | | | | | | | | | | | | | This patch proposes the migration of port deletion of Neutron's "router-interface-delete" to OSC's "router remove port". Change-Id: Ifceabce080aacac9f6410c809fcc097760e0c5ee Partial-Bug: #1546849 Implements: blueprint neutron-client-advanced-router
* | Fix pep8 fail that crept inDean Troyer2016-04-081-1/+1
| | | | | | | | | | | | Not sure how, but this crept in via https://review.openstack.org/#/c/281691/ Change-Id: I919276ee5204277dbc5e96f4de4b98381142423a
* | Merge "Add "router add port" to osc"Jenkins2016-04-081-1/+25
|\ \ | |/
| * Add "router add port" to oscreedip2016-03-211-1/+25
| | | | | | | | | | | | | | | | | | | | This patch proposes the migration of port addition of Neutron's "router-interface-add" to OSC's "router add port". Change-Id: I3a8a76d384caa32975f8e77f50f3cf3c3be13786 Closes-Bug: #1546849 Depends-On: I9783bc4ccceae3d361dce52d51483ef2187920a9 Implements: blueprint neutron-client-advanced-router
* | Follow Boolean Option rulereedip2016-03-311-15/+12
| | | | | | | | | | | | | | | | | | | | | | OSC has a specific rule for handling boolean based options in [1]. This patch modifies the exisiting code so that it matches the criteria that have been specified in [1]. [1]: http://docs.openstack.org/developer/python-openstackclient/command-options.html#boolean-options Closes-Bug: #1559418 Change-Id: I182381d5579efbc75a5d3e8a91f412398abf5c3c
* | Fix dict.keys() compatibility for python 3Tang Chen2016-03-121-1/+1
|/ | | | | | | | | | In Python 2, dict.keys() will return a list. But in Python 3, it will return an iterator. So we need to fix all the places that assuming dict.keys() is a list. Change-Id: I8d1cc536377b3e5c644cfaa0892e40d0bd7c11b1 Closes-Bug: #1556350
* Fix incorrect unit test for routerTang Chen2016-03-031-8/+12
| | | | | | | | | | | Command "router show" will display router's "tenant_id" as "project_id". But in the unit test, it checks "tenant_id", which is incorrect. This patch fix this problem, and add a _get_columns() helper function to simplify the code. Change-Id: I0087ef7dfd0130b6c47222495848c4f2b9804b1b
* Router: Add --route and --clear-routes options to "router set" commandTang Chen2016-02-271-4/+26
| | | | | | | | | | | | | | | | | --route option is used to set routes to the router. It is used like this: --route destination=subnet,gateway=ip-address destination: destination subnet CIDR gateway: nexthop IP address --clear-routes is used to clear all routes on the router. Change-Id: I97ce4871113c684b29c98cdad4dec9cc80ed20f7 Implements: blueprint neutron-client Partial-bug: #1519503
* Merge "Minor typo in help text"Jenkins2016-02-041-1/+1
|\
| * Minor typo in help textJas2016-02-031-1/+1
| | | | | | | | | | | | fix misspelled 'project' in router-create help text Change-Id: I4874563c0dd7ca35ef153cf24b99e357c0c076b9
* | Merge "Add availability zone support for router commands"Jenkins2016-02-031-0/+17
|\ \