Some client tests uses status code 204 although it expects the
API returns a body with status code 200, for instance,
test_add_interface_by_subnet, test_add_peer_to_bgp_speaker, and so on.
This patch makes the tests use correct status code and also changes
default status code into 200 because it's an usual code of PUT operation.
Change-Id: I5dbcad8769a32e8834347fb57695db72b313b0a5
Closes-bug: #1611167
If enable_snat_by_default option set to false and disable snat via cli
it becomes unavailable to enable snat again.
This commit allows to enable snat after disabling it.
Change-Id: I01009d5cd5edd5be3eead615c37d6aa2e3224442
Closes-Bug: #1598171
This allows the router to take a flavor argument that can
be either the ID or the name of a flavor to use when creating
a router.
Partially-Implements: blueprint multi-l3-backends
Change-Id: I100fc75de6d41900f6452f356f0b7b741cd177ce
This adds the description field to the parsers for all
of the resources that gained description fields in the
dependent patch.
Change-Id: I939b517c5320ea9dd3f387c12adee1ed8876adec
Related-Bug: #1483480
Depends-On: I6e1ef53d7aae7d04a5485810cc1db0a8eb125953
The help info of "neutron router-gateway-set" is not much
complete.
Below is the help message of "neutron router-gateway-set":
usage: neutron router-gateway-set [-h] [--request-format {json,xml}]
[--disable-snat] [--fixed-ip FIXED_IP]
ROUTER EXTERNAL-NETWORK
neutron router-gateway-set: error: too few arguments
Modified the help message and added unit test.
Usage should be as below,
usage: neutron router-gateway-set [-h] [--request-format {json,xml}]
[--disable-snat] [--fixed-ip subnet_id=SUBNET,ip_address=IP_ADDR]
ROUTER EXTERNAL-NETWORK
neutron router-gateway-set: error: too few arguments
Change-Id: I2a0bbd147803108e4001ffe86594e1201b9c388b
Closes-Bug: 1527129
There are a lot of H405 violation codes.
We need to fix the code for avoiding more violations.
Change-Id: Iaa83626b81a3d8369b16e2b4f394e2bc4628998a
Closes-Bug: #1521899
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
This patch adds the availability_zone support for CLI.
Change-Id: I13faf6d90e84f401f07376c517c643ba9eda2295
Co-Authored-By: IWAMOTO Toshihiro <iwamoto@valinux.co.jp>
Partially-implements: blueprint add-availability-zone
Add the --route and --no-routes options to neutron router-update.
This will make it easier for CLI users to add or remove routes
associated with a router.
Change-Id: If0e3125420afe3609633cd6c133edaa5a172357d
Closes-Bug: #1452229
Initially we were unable to see complete help
info for "neutron router-update" command.
Now, with this patch complete help info is
displayed to the user. Apart from the existing
information, the following information will
also be displayed:-
--name
--admin-state-up
--distributed
Change-Id: I149855e86a2d874c10f1ff315a2627e0f0f306c7
Closes-Bug: #1401030
There are couple of inconsistency in using
the Camelcase and Lower case for 'True/False'
options in the python-neutronclient.
With this fix it will be consistent across all
CLI commands.
Change-Id: Ifc08ac326e8130f69f864b05781076951a306fa0
Neutron router-create optional argument distributed
does not accept "true/false" anymore.
It only accepts value with Camel case "True/False".
This patch will allow the users to provide both
True/true or False/false.
Change-Id: I79577bd70a796543b9dea53b4839512eb8944d7c
Closes-bug: #1368934
Previously --distributed was displayed as positional
argument in the help text, but acted as an optional
argument with the -- semantics. It now behaves like
any other optional argument.
A side-effect is that previously you could:
1) neutron router-create --distributed r1
2) neutron router-create --distributed=True r1
3) neutron router-create --distributed=False r1
While now only options 2 and 3 are viable.
DocImpact
Partially-implements: blueprint neutron-ovs-dvr
Closes-Bug: #1346121
Change-Id: I60675b4f60fe8154af4ab6d8f0e93867cf362a59
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
Fixed the neutron router-gateway-set command regression:
"neutron router-gateway-set <router> <public-net>"
is failing for non-admin users.
Changed the behavior to pass the enable_snat attribute to
the server only when the --disable-snat option is specified.
bug 1209027
Change-Id: Iec55a17ed7966ee15bf05982d98540fe6884fa20
Neutron itself has all of its tests in neutron/tests, as do 2/3 of
the projects in OpenStack. There are a wealth of reasons to put
them in the package, not the least of which that tests/__init__.py
implies a code living in a global namespace called tests.
Change-Id: I2aaacfe59d6790648aa4587e89e6dd28a9149a6c