112 Commits

Author SHA1 Message Date
dharmendra
7951ebb39e Removing test cases for already removed methods
tackerclient/common/utils.py doeas not contains these methods:
  to_primitive
  loads
  dumps.
Removing related test cases

Change-Id: I73035fcd120efc09cd19c94a8fa41671c2b3a7c3
Partial-Bug: 1617157
2016-08-27 01:09:24 +09:00
Tim Rozet
144408331e Adds client commands for listing a VNF resources
Support now for being able list sub resources of a vnf. REST path is
/vnf/<vnf_id>/resources/.  Resources will contain 'name', 'id', and
'type'.

APIImpact
Partial-Bug: 1602112

Change-Id: Ib9f0163c0c86df2a4d17630a5e6f7ca2d2fb22de
Signed-off-by: Tim Rozet <trozet@redhat.com>
2016-08-25 22:34:03 +00:00
Jenkins
7f829587b0 Merge "Revert "Creates details API to fetch VNF detials"" 2016-08-25 21:55:25 +00:00
Janki Chhatbar
cc0a66884b Revert "Creates details API to fetch VNF detials"
This reverts commit 5a1f2f5717bc55e196e9006d6891ad077e0e4211.

Reverting in account of a new patch [1].

[1]. https://review.openstack.org/#/c/360197/

Change-Id: Iaf5f65bd20bb098120378f9b63c86b97a86df35d
2016-08-25 14:22:29 +00:00
Jenkins
7a0f627e2e Merge "Add "Description" parameter while creating VNF with CLI." 2016-08-24 21:03:57 +00:00
Janki
5a1f2f5717 Creates details API to fetch VNF detials
Created details API to fetch VNF details. This is optional
based on the --show-details flag enabled.

APIImpact
Partial-Bug: #1602112

Change-Id: I63bcf3f9ad23fbbcfdec6f72e45540ce55e6bd7c
2016-08-20 05:35:42 +05:30
Jenkins
6b677a8f38 Merge "Remove '--config' option when create/update a vim" 2016-08-18 02:59:51 +00:00
vish
647baba801 Adds audit support in client
This commit enables support in the client for the resource event
logging

Implements: blueprint: audit-support

Co-Authored-By: Kanagaraj Manickam <mkr1481@gmail.com>

Change-Id: Ia54aed6720043840b00dd2eb00ca03a2ed92da5e
Depends-On: Change-Id: Ib82be521c5aa8b627e3f34a3696b10508371d3a0
2016-08-16 22:35:03 +00:00
Jenkins
977038a0b3 Merge "VNF scaling: CLI and python client" 2016-08-16 21:28:03 +00:00
xu-haiwei
e5457e5062 Remove '--config' option when create/update a vim
When create/update a vim, only enable '--config-file' option, will
remove '--config' option.

Change-Id: I8a728134ce0229db98de10bff5f4f46e7f2a9f2c
Closes-bug: #1587216
2016-08-15 13:14:39 +00:00
Manikantha Srinivas Tadi
6fecf2adf7 Add "Description" parameter while creating VNF with CLI.
Partial-Bug: #1586300

Change-Id: Ifaea2344b7f00414de743be1c035bd750e0af87b
2016-08-11 04:17:44 -04:00
Jenkins
166368b8b0 Merge "Make VNFD/VNF/VIM Name Mandatory in Tacker CLI" 2016-08-11 02:23:41 +00:00
Kanagaraj Manickam
94ccf2ded8 VNF scaling: CLI and python client
vnf-scale --vnf-name <vnf-name> --vnf-id <vnf-id>
          --scaling-policy-name <policy-name>
          --scaling-type <type>

implements:  blueprint #vnf-scaling
depends-on: Ib8cdd1295460e617806eec173e4d4ed8f35e6642

Change-Id: If88273efad41eaff466895ad7dbba6a8de31d119
2016-08-05 06:22:21 +05:30
Jenkins
eebea81587 Merge "VNFD legacy template deprecation warning" 2016-08-04 22:28:43 +00:00
Jenkins
4b7fce5642 Merge "Unified formats of log_xxx function" 2016-08-04 18:40:45 +00:00
Janki Chhatbar
5a9490e567 VNFD legacy template deprecation warning
Throws VNFD legacy template deprecation warning in favor of using
TOSCA templates. This is client-side patch.

Partial-Bug: #1582928
Change-Id: Ia8bed682c1724a7d0e4e6330fc99c6ff49f71388
2016-08-03 11:54:13 +05:30
gong yong sheng
0aa7efd292 Add domain information into auth cred.
If we use v3 keystone, these information should be passed
into tacker server.

Change-Id: Ieb5612c966b2110930faac0401f5dabde064ffc1
Partial-Bug: #1603851
2016-07-28 14:06:48 +08:00
Lu lei
31626a41c4 Unified formats of log_xxx function
This patch is used to unified formats of
log_xxx function.I have founded all log_xxx
funtions of project files.Only this one is still
not the same as others. I think change this formats
may make codes more readable and uniform.

OpenStack supports translating some log levels
using separate message catalogs, when we add
Variables to Log Messages, We do not do this:
    LOG.info(_LI('some message: variable=%s') % variable)
actually, we use this style insteaded:
    LOG.info(_LI('some message: variable=%s'), variable)

Change-Id: I3fd924516969853b2b9dced7659d33cdadd8d4ad
2016-07-28 13:35:32 +08:00
Manikantha Srinivas Tadi
f4daaa09ba Make VNFD/VNF/VIM Name Mandatory in Tacker CLI
Change-Id: I7e94cc43a61fbeb2b406d1e973ca422359e761a0
Partial-Bug: #1474966
2016-07-26 00:09:58 -04:00
Jenkins
e88619e985 Merge "Transition default VIM to API and DB operation" 2016-07-25 18:05:44 +00:00
Jenkins
602c06373d Merge "Remove the mask password logic in vim list and vim show" 2016-07-23 02:31:44 +00:00
Kawaguchi Kentaro
c9ac53a722 Remove the mask password logic in vim list and vim show
In vim list and vim show command,
since hashed password masking on server-side,
the "mask_dict_password" modules are removed on client-side.

Change-Id: I463cb04696dc09157fbbc4b0bd64e66850feac84
Depends-On: Ice5c51b6a66cd27f21c144d3a672cf790e4cec41
Closes-bug: #1594495
2016-07-22 14:03:33 +09:00
Saju Madhavan
00d87bde7e Transition default VIM to API and DB operation
Set the default-vim in the tacker-db and provide
API to manage it.

Change-Id: Ie447f13c1d30e3cf5c1756c424fe60882082c211
Partial-Bug: 1592957
2016-07-20 18:27:39 +05:30
xu-haiwei
9910cbc746 Remove unused import library
TrivialFix

Change-Id: I3f75282a0b9b0493f8d0ead8092cee76824290a8
2016-07-20 01:11:11 +00:00
Jenkins
431a79ba3d Merge "remove unused LOG" 2016-07-15 13:14:13 +00:00
Jenkins
3c6f82dfaf Merge "Display Health status of VIM" 2016-07-11 19:30:22 +00:00
ji-xuepeng
654ad24e3b remove unused LOG
This is to remove unused LOG to keep code clean

Change-Id: Iba4e29892f3011356ce927f73ce9f418365df609
2016-07-10 14:59:47 +08:00
xu-haiwei
a5ad0bc3d3 Fix ext-show command error
Currently ext-show command can not be ran correctly, because
there are duplicated arguments added to command options.

Change-Id: I36fdb3608f9976c633902bba04d61c3cd63b1b39
Closes-bug: #1595036
2016-07-08 01:14:20 +00:00
Kawaguchi Kentaro
805ca417b8 Change the initial letter to capitals in Tacker CLI help texts
Change-Id: I24f87e65d963b5e425e4b49337d05830bcccc130
Closes-bug: #1593661
2016-06-22 12:55:32 +09:00
Jenkins
8605e2d254 Merge "Add client side support for error_reason" 2016-06-18 13:39:28 +00:00
Bharath Thiruveedula
fc363ee49a Add client side support for error_reason
Change-Id: I9bb58c5648f62a4b8eacc2d5b48ff95869cc8ae8
Partial-Bug: #1524214
Depends-On: I4897e7e4ebdb8c887fb9882e693e5b3d3f4664e5
2016-06-17 14:36:35 +05:30
xu-haiwei
67c034b8a1 Change bind_port to 9890
Since the bind_port of tacker server is changed to 9890, fix the
document and test case to meet this change.

Change-Id: I5baff302517c8bd8b7cc14b10e771beb9079762b
2016-06-10 17:02:53 +09:00
Jenkins
d5ee6c3b50 Merge "Fix incompatible code with python3 for tox pep8 test" 2016-06-08 20:06:40 +00:00
Hideki Saito
d47747260f Fix incompatible code with python3 for tox pep8 test
"tox -e pep8" fails when python3 is used.
This patch fixes it.

Closes-Bug: #1583984

Change-Id: Idff17f64d2d4789acee08bd98902ae50312ddc92
2016-05-25 10:23:23 +09:00
Luka Krajger
05ac550251 Capitalize help descriptions
Change-Id: Ie93af370e455990ee2e4fcbb11a9f1dbfeb51aab
2016-05-19 18:03:14 +02:00
Bharath Thiruveedula
c32028201f Display Health status of VIM
Change-Id: I59993e2b2187588cc216cba3d05e3da1b4f1cc2c
Closes-Bug: #1554280
Depends-On: I25beaa5e1fd2fca87503c45d720f89d6f8156622
2016-05-12 16:39:52 +05:30
Jenkins
cce904b24b Merge "Fix deprecation warning in tackerclient" 2016-05-02 22:04:38 +00:00
Jenkins
bc4b14ad45 Merge "Clean device from help message" 2016-05-02 20:22:25 +00:00
dharmendra
f7b11685c4 py3.x: Use six.iteritems for Iterable dict items.
py3.x: Use six.iteritems for Iterable dict items instead of dict.iteritems.

Change-Id: Ibc4dbee779c1da52eba5b9ed34b982103c404e7f
Related-Bug: #1547712
2016-04-22 11:07:39 +05:30
Jenkins
d9a58b3207 Merge "Do not display password in VIM command outputs" 2016-04-21 21:29:05 +00:00
Tin Lam
12e2230b3b Fix deprecation warning in tackerclient
Changed _extract_service_catalog to match neutronclient to remove
deprecation warnings when attr is provided without filter_value to
get_urls().

Change-Id: Ic58060bdf50ce1f3834324372f1a375fbd15beb6
Closes-Bug: #1570641
2016-04-20 20:53:48 -05:00
Sripriya
07444203ec Do not display password in VIM command outputs
This fix masks the password attr in vim response for vim-list,
vim-show and vim-create commands.

Change-Id: I9b38b45f292a11f4615f3dc8eff672a4206c4a4a
Closes-Bug: #1567585
2016-04-18 17:08:23 -07:00
dharmendra
83cfe9306b Clean device from help message
Use VNF instead of device in help message

Change-Id: Ic5ae7bfff836a74d497d9ae997c1bb99c56eac4d
2016-04-13 18:50:26 +05:30
Jenkins
27e85a9ae3 Merge "Clean unused code." 2016-04-08 18:09:06 +00:00
dharmendra
6a2df0a918 Clean unused code.
Removing unused class.

Change-Id: Id134e24564cbd2f2e977cd823121e67d9183fc8e
2016-04-07 09:36:28 +00:00
Sridhar Ramaswamy
20d3658353 Cleanup copyright header
Remove personal references in copyright header.

Change-Id: I05a8939f55acdd108276a37131f8988485801fbe
2016-04-04 03:30:14 +00:00
Jenkins
854afc4392 Merge "Cleanup vim settings" 2016-04-01 19:09:51 +00:00
Jenkins
8dd822ae97 Merge "Help message correction" 2016-03-28 22:48:48 +00:00
Martin Oemke
00d3c9771c Cleanup vim settings
This patch cleans up vim settings in .py files.
Settings should be handled in local settings.

Change-Id: Ib7a8c9751d18356070a39798ceedd1e400d979dd
2016-03-28 12:24:24 +02:00
Sripriya
de4aeb2736 Fix attr for vim update
Vim resource attr 'type' does not allow a PUT operation. Updated
the vim args to refelct typeattr for POST operation only. Also
fixed the vim name arg for vnf create command

Change-Id: I3c08945f24343288c2c5614ab4b472d68a1e1d47
2016-03-22 16:26:31 -07:00