Commit I87b257ee6500c424fc273955a6d89d972a2823e9 had supported
sha2-384 and sha2-512 in VPNaaS side, this patch add those support
in CLI side.
Change-Id: Ie1842acd830e9b8c624cf099491ed5ff46304b8d
Closes-Bug: #1639990
The vpn-* and ipsec-connection update CLIs do not
show all possible updatable options. With respect to
the information in [1], this patch introduces the updatable
options in the following CLIs:
neutron ipsec-site-connection-update
neutron vpn-ipsecpolicy-update
neutron vpn-service-update
neutron vpn-ikepolicy-update
[1]:https://git.openstack.org/cgit/openstack/neutron-vpnaas/tree/neutron_vpnaas/extensions/vpnaas.py
Change-Id: I76b1846c62747fe7e9c6b0bd1ef40728269ed553
Currently only sha1 is supported for vpn ikepolicy and ipsecpolicy
config. One patch is already merged to support sha256 for these 2
configs. Sync neutron command to support sha256.
Change-Id: I8c1189bd0eba3de12cd1ef78b795e46efe65c29e
Depends-On: I02c80ec3494eb0edef2fdaa5d21ca0c3bbcacac2
Closes-Bug: #1567846
This commit adds valid_keys and required_keys to str2dict
and define a new function which can be used as argparse type
validator.
By this function, we can declare what fields are valid and what
fields are required for dictionary option in option definition.
Change-Id: Ib7b233e082c15d0bd6e16a754b8acad52e413986
Closes-Bug: #1102897
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
Previously non_admin_status_resources for each resource
is defined in the common test module test_cli20.py.
This means when we add a new resoruce without admin_status_up
we need to change the common test module.
This commit moves non_admin_status_resources into each test.
Change-Id: Ieefa87eedcbabf083c127df893c11ad265f590b1
We have a hacking rule H105 (Don't use author tags) now
and the same policy has been applied to other neutron repos.
Change-Id: I1a1a35bbfaad6bbe229b9b12cf6cfb405b6ed516
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
Closes-Bug: #1217205
This commit fixes the following bugs which are detected by moving
VPN unittests.
* Raise CommandError instead of Value/KeyError in VPN parameter
validation (Closes-Bug: #1219192)
* Delete dpd_timeout_less_than_interval test in IPsec site
connection tests. CLI does not validate this and it raises
ConnectionError and results in the test failure.
(Previously this test catches a general Exception,
so the unit test does not fail unexpectedly.)
(Closes-Bug: #1219389)
There is a confusion on whether dpd_timeout == dpd_interval
should be accepted in server side code, document and CLI.
it is important to make VPN related tests enabled, so I decided
to leave the fix of validation logic in the future work.
(Filed as Related-bug: #1219440)
Change-Id: Ie4f4e8cdf533a983d0a6d4d564a7267a3323b832