10 Commits

Author SHA1 Message Date
Dongcan Ye
42d995bf9d [VPNaaS] Add support for sha2-384 and sha2-512
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
2016-11-08 10:04:18 +08:00
reedip
629393090b Improve Help message of VPN Update CLI
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
2016-08-20 07:05:40 +00:00
nick.zhuyj
b16bc6cffa Support sha256 for vpn-ikepolicy and vpn-ipsecpolicy
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
2016-04-26 02:53:50 -05:00
Akihiro Motoki
ed17ae60bd Improve str2dict key validation to avoid wrong keys
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
2016-02-21 11:33:29 +00:00
shu-mutou
ec4e482731 Fix H405 violations
There are a lot of H405 violation codes.
We need to fix the code for avoiding more violations.

Change-Id: Iaa83626b81a3d8369b16e2b4f394e2bc4628998a
Closes-Bug: #1521899
2015-12-13 05:48:42 +09:00
Elena Ezhova
54a4aea969 Remove XML support
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
2015-12-09 11:09:26 +03:00
Akihiro Motoki
95915b49b3 Define non_admin_status_resources in each test
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
2015-09-28 17:32:13 +09:00
Akihiro Motoki
ed46ba9a45 Remove author tag
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
2015-03-23 15:44:08 +09:00
liu-sheng
e955a1fc80 Remove vi modelines
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
2014-02-10 17:00:28 +08:00
Akihiro MOTOKI
98df1fd4ff Move vpn unittest code to neutronclient.tests
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
2013-09-01 22:29:18 +09:00