130 Commits

Author SHA1 Message Date
Anh Tran
66c9b13212 Using assertIsInstance() instead of assertEqual(True, isinstance())
Change-Id: I567519f19d415a17a5253d3864031583619586b4
2016-09-30 02:49:34 +00:00
Jenkins
d810074cda Merge "Body can not be None while creating vnfd" 2016-09-19 04:27:42 +00:00
dharmendra
cb66556390 Body can not be None while creating vnfd
Trivial Fix

Change-Id: I8b2cd1171a530c8cdd0b2a09d87a76ed1a10bd37
2016-09-12 09:17:58 +09:00
Jenkins
1612e2227c Merge "Removing test cases for already removed methods" 2016-09-09 17:47:58 +00:00
dharmendra
495ccbd2aa Add support for multi delete
Currently Tacker client support single resource(i.e VNFD, VNF or
VIM) deletion per call. With this fix, multiple VNFs, VNFDs or
VIMs can be deleted in a single client call.

Change-Id: I0819d94e14637d8e9d8a7b2afb5f948587e00ce0
2016-09-09 14:27:09 +09:00
Jenkins
d8a6fa279a Merge "Allow auth url without port for vim registration" 2016-09-08 19:05:26 +00:00
dharmendra
95733d9eb4 Remove "else" branch in "create_vnfd" function
There is not necessary for "else" branch, so it remove.
Co-Authored-By: dharmendra kushwaha <dharmendra.kushwaha@nectechnologies.in>

Change-Id: Ic4313175518513e583795b84c2725b770eb2888f
2016-09-07 15:20:44 +00:00
gong yong sheng
3b60ab1aaa Allow auth url without port for vim registration
This patch allows vim-register command to register keystone
URL without port.

Change-Id: Ie04a0253aa3f42ef532ccf8a7bddbbd1f88e3e34
Closes-bug: 1618756
2016-08-31 17:14:27 +08:00
Jenkins
48d458d290 Merge "Modify MyURLComparator to handle deep match on URL" 2016-08-27 14:29:16 +00:00
vish
f1eef18974 Moving test files to vm directory
This commit moves the test files from events and nfvo directory
to the vm directory. Currently tests are executed if they are in
the vm directory.

Change-Id: I7ac08fb5686597926ec3b3c62d8221abf2b0f066
Implements: blueprint: audit-support
2016-08-27 03:40:54 +00:00
Jenkins
78b0876baf Merge "cli: modify vnfd, param & config attr. to dict obj" 2016-08-26 23:33:49 +00:00
Sripriya
f6848f0f31 Modify MyURLComparator to handle deep match on URL
MyURLComparator equals method is enhanced to perfom url comparison
based on url parts such as scheme, netloc, path and query instead
of raw string comparison.

pagination methods are modified to wrap the url requests with pagination
params within MyURLComparator objects.

Change-Id: I69b835dce64d662d1af6a14556fb8281e3b04d63
Closes-Bug: #1617480
2016-08-26 16:03:27 -07:00
Jenkins
542a2bb083 Merge "Deprecate infra_driver and mgmt_driver" 2016-08-26 22:34:28 +00:00
digambar
ced23fe6ab Deprecate infra_driver and mgmt_driver
infra_driver will be automatically figured out
in the VNF instantiation based on target VIM type
mgmt_driver is specified in the TOSCA template
per-VDU and the value the client API is ignored

Both these attributes will be removed in Ocata.

Change-Id: Ic59d7f8af6e4b1a27f4125f57d8165dc1011ce9e
Closes-bug: #1524243
2016-08-26 20:26:40 +00:00
Sripriya
aa499bb5f3 Remove list_vnf_resource_pagination unit test
This patch removes the list_vnf_resource_pagination unit test
which tested the pagination support of list_vnf_resources.
Pagination support is not enabled for vnf resources and hence
removed the test case.

Change-Id: I98843a63f6566595ceeb4758926a441fff2ee0ff
2016-08-26 12:54:41 -07:00
Jenkins
c047bf9db2 Merge "Add client support for VNFFG in NFVO" 2016-08-26 17:25:42 +00:00
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
xu-haiwei
882f6b6c93 Add client support for VNFFG in NFVO
Co-Authored-By: Tim Rozet <trozet@redhat.com>

implements blueprint: tacker-vnffg
Change-Id: Ic5273319a01b8003e9497fbf7f984972602c7698
2016-08-26 09:23:35 -04:00
Sripriya
ed102cac10 cli: modify vnfd, param & config attr. to dict obj
vnfd templates, parameter and config files are sent as yaml
strings in requests body to tacker server.

Change the attributes to dictionary objects. New behavior
is applicable to tosca templates only. Also, this change may mangle
the order of nodes in tosca templates. In order to address this
concern and preserve the network interfaces order in these nodes,
there will be follow on patch (on server) to addres this.

Change-Id: I05a1d60dc643dca864aff559f37491914b1fcfc3
Partial-Bug: #1591361
2016-08-26 00:57:13 -07: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