190 Commits

Author SHA1 Message Date
gongysh
573de86f7f Complete VIM osc commands
Change-Id: I3cb21b0583020db8a91789e2168d2a51d45d0cf4
Implements: blueprint tacker-support-python-openstackclient
2018-01-23 08:44:12 +08:00
Cong Phuoc Hoang
b6ef835d89 Add "cert_verify" in vim_config file to support insecure VIM
Currently, Tacker can not communicate with VIM endpoints that
use SSL. This patch will add cert_verify parameter, user can
set "cert_verify" to False (default value is True) to disable
verifying SSL.

Change-Id: I0af2a0f91ecda2a63cf6233d780e1dd7c064513c
2018-01-13 09:35:13 +00:00
Zuul
4a772e74d8 Merge "Base OpenStackClient(OSC) plugin support" 2018-01-08 07:46:11 +00:00
Cong Phuoc Hoang
e026ae17e5 Add "--vnffgd-template" to vnffg-update command
This patch will add "--vnffgd-template" to vnffg-update command to support
update VNFFG from file. User can run:
    tacker vnffg-update --vnffgd-template <vnffgd-file-name> vnffg_name
to update the existing VNFFG.

Partially Implements: blueprint update-vnffg

Change-Id: Ief0469d870530693798f798ecd2f52782318795b
2018-01-06 11:39:06 +09:00
yong sheng gong
0fcd6c31c3 Base OpenStackClient(OSC) plugin support
This patch enables tackerclient OSC plugin support.

Co-Authored-By: yong sheng gong <gong.yongsheng@99cloud.net>
Co-Authored-By: Trinath Somanchi <trinath.somanchi@nxp.com>

This adds the first list VIM command.

Change-Id: I75d430b00861ee9020d346cfb8ac8b736d36f47d
Implements: blueprint tacker-support-python-openstackclient
2018-01-05 19:11:02 +08:00
Zuul
67d2cd836b Merge "Update the documentation link for doc migration" 2017-12-19 05:00:58 +00:00
lingyongxu
5881bec6a6 Update the documentation link for doc migration
This patch is proposed according to the Direction 10 of doc
migration(https://etherpad.openstack.org/p/doc-migration-tracking).

Change-Id: Ifdf9aa3a03d268ba13c2d7c2f15ec728b909c37d
2017-12-19 11:13:20 +08:00
Zuul
73592154f1 Merge "Implement client to support Kubernetes as VIM" 2017-11-22 01:54:54 +00:00
Cong Phuoc Hoang
6f1792b490 Implement client to support Kubernetes as VIM
This patch will add changes to support Kubernetes as VIM feature
in python-tackerclient.

After this change, user have to provide VIM type in VIM config file
when creating or updating VIM. The default VIM type is openstack.

Partially Implements: blueprint kubernetes-as-vim

Change-Id: I1b1610cb89a78a2a8fe134265b83dd469d72fdcd
2017-10-30 17:13:40 +09:00
Tim Rozet
584b44c8e7 Fixes symmetrical for vnffg update
Missed this with create fix:
Ide2aeab73b1dd88beb6e491e6b07cdee9fb7e48a

Change-Id: Ia983150de322d1ffbd7eeedc2048c19c095afefb
Signed-off-by: Tim Rozet <trozet@redhat.com>
2017-10-10 10:14:32 -04:00
Jenkins
bab4900db2 Merge "Update creating directly VNFFG and NS from descriptor template" 2017-09-28 12:16:36 +00:00
Tim Rozet
9630f711a8 Fixes passing boolean as string for symmetrical
Bug where 'True'/'False' strings were being passed in REST to Tacker
service which would end up throwing an exception because the DB type for
symmetrical is boolean/small int.  This converts it to boolean in the
client.

Closes-Bug: 1711550

Change-Id: Ide2aeab73b1dd88beb6e491e6b07cdee9fb7e48a
Signed-off-by: Tim Rozet <trozet@redhat.com>
2017-09-25 12:59:28 -04:00
Cong Phuoc Hoang
d8b0dbcbb7 Update creating directly VNFFG and NS from descriptor template
Currently, Tacker only support creating VNFFG and NS from VNFFG descriptor
and NS descriptor. This patch will support creating directy VNFFG and NS
from template file without initiating VNFFG and NS descriptors before.

Change-Id: If7554287bbe1184d9b84609f81e53f17d7b5fdfe
Closes-bug: #1681032
2017-08-10 06:37:45 +00:00
Jenkins
bfed79e1b0 Merge "Error handling for vnfd-create with empty vnfd-file" 2017-07-05 09:33:49 +00:00
vagrant
a11344c318 Error handling for vnfd-create with empty vnfd-file
Error handling for empty vnfd-file and yaml load.

Closes-Bug: #1490067
Change-Id: I48c21d193251a95c8fc7b10d3c6549b74c5287df
2017-07-03 08:13:26 +00:00
rajat29
b7a494e7d4 Replace six.iteritems() with .items()
1.As mentioned in [1], we should avoid usingg
six.iteritems to achieve iterators. We can
use dict.items instead, as it will return
iterators in PY3 as well. And dict.items/keys
will more readable. 2.In py2, the performance
about list should be negligible, see the link [2].
[1] https://wiki.openstack.org/wiki/Python3
[2] http://lists.openstack.org/pipermail/openstack-dev/2015-June/066391.html

Change-Id: I988ff08fe1d6bc52c4a601641c564db7881accf4
2017-06-14 12:08:54 +05:30
Jenkins
ed54224b6f Merge "Auth_creds should show the user specified values" 2017-05-29 05:05:35 +00:00
venkatamahesh
506f4cc4b9 Auth_creds should show the user specified values
Make auth_creds display the user specified credentials
which are project_name and username. Normally
vim configuration yaml file has no project_id and user_id

Change-Id: I987ad7bda04b0a161c56284f77964063490a18e0
Closes-Bug: #1629169
2017-05-27 06:44:22 +00:00
claire1006
978bb7cbbd Add "is_default" attribute in vim-list,and remove some unnecessary
info.

Change-Id: Ib78d16f9674623b288e693014e9abcbc976283e2
Closes-bug: #1692390
2017-05-24 00:52:19 +00:00
Jenkins
77c25ce011 Merge "Remove log translations" 2017-05-08 00:49:27 +00:00
Trinath Somanchi
10b06eb2ff 'update-vim' to update params without config file.
Change-Id: Icb869f26a212776c453313642faefb31eb921ccf
Closes-Bug: #1674906
2017-05-02 17:04:51 +08:00
Dharmendra Kushwaha
845a5e1439 direct input for config was deprecated in ocata. Removing now.
Change-Id: I2dc08c37150eb00364c307c55c94bb3c51174886
2017-03-30 09:48:48 +00:00
aksingh
4c3adee97b Refactor mox references to use the mock library in pythontackerclient
use mock instead of mox

Co-Authored-By: Trinath Somanchi <trinanth.somachi@nxp.com>
Change-Id: I9e5327a4e4e6cba220670b096f718e7343fd43dc
Closes-Bug: #1572706
2017-03-24 09:35:01 +05:30
shihanzhang
8c3701e634 Remove log translations
Log messages are no longer being translated. This removes all use of
the _LE, _LI, and _LW translation markers to simplify logging and to
avoid confusion with new contributions.

See:
http://lists.openstack.org/pipermail/openstack-i18n/2016-November/002574.html
http://lists.openstack.org/pipermail/openstack-dev/2017-March/113365.html

Change-Id: I5f669d75f0926e5e5a11520625f8a43457bb58eb
2017-03-21 13:40:08 +08:00
gongysh
919dca0855 Revert "Switch to oslo_log"
it caused No handlers could be found for logger "tackerclient.shell"
This reverts commit af2f0f031f12ebdbfe17f2abddc1794d1396fb8c.

Change-Id: I8556dbf7ea45a268daa900e00c5334f11cd106d0
2017-03-18 06:12:33 +00:00
Trinath Somanchi
af2f0f031f Switch to oslo_log
tackerclient is currently using python logging module to
implement logging functionality.
This patch made a switch to oslo.log(logging for openstack projects)

Reference:-
http://docs.openstack.org/developer/oslo.log

Change-Id: Iecab180e605c788bb820c7a628781abf9a4918ea
Closes-Bug: #1656167
2017-03-14 14:37:31 +05:30
Trinath Somanchi
c80b0c7133 vnfd-delete gives ambiguous success message
When a single vnfd is deleted, the following success message is delivered.

$> tacker vnfd-delete cirros-vnfd-multi-vdu

All vnfd(s) deleted successfully

The above success message has to modified to
" All specified %(resource)s(s) %(msg)s successfully? "

Change-Id: I48443622b718a1d6a1476f53c6378b67ce0d82e4
Closes-Bug: #1672302
2017-03-13 15:31:55 +05:30
Jenkins
b3da4a6a7f Merge "Deprecate direct YAML input in tackerclient" 2017-01-24 20:46:38 +00:00
Sridhar Ramaswamy
1dedfd7305 Deprecate direct YAML input in tackerclient
Starting from Ocata tacker payloads will only accept
YAML dict for config and param payload values. Hence
remove the warning when something other than YAML dict
is received by the client. Such a CLI input is no longer
make sense. So, starting Ocata deprecate all direct
YAML input and remove it in Pike.

Change-Id: I03f3ac405e92d7e9fa69fd2b2761c243456fd7e8
Partial-Bug: 1656416
2017-01-24 00:03:58 +00:00
Jenkins
0d47fe20fa Merge "Support VNF creation from inline VNF template" 2017-01-20 20:00:48 +00:00
janki
f66a4e0ccc Support VNF creation from inline VNF template
Allows creating VNF from the VNFD template directly without the need of
VNFD being stored in Tacker VNFD catalog.

Change-Id: I719237dd04dd7fe13fb7e7964402d7074679b2d6
Implements: blueprint vnf-inline-template
2017-01-20 06:58:02 +05:30
Manikantha Srinivas Tadi
7cd2f2cc6a Adds vnfd_id coloumn in vnf-list
Change-Id: I0c11d7c4710da225d8786a8e9cc29693d0cc5434
Closes-Bug: #1592277
2017-01-18 02:27:28 -05:00
Bharath Thiruveedula
b91c8a745e Remove unwanted 'required' parameters
Closes-Bug: #1655419
Change-Id: I7642161a8b8f68c461cbb08520f9e6c6fa8b7863
2017-01-11 12:13:24 +05:30
dharmendra
27a9ed8a35 Remove support for legacy VNFD templates.
From Mitaka version, Tacker supports TOSCA based VNFD templates.
Legacy templates were deprecated in newton. Server side already
commited in https://review.openstack.org/#/c/382786/.
Removing related checks in client side now.

Implements: blueprint deprecate-legacy-template-dsl
Change-Id: I60b683c6d63b6976d438ff6130d16ddbf0656940
2017-01-08 19:39:59 +00:00
Jenkins
aa7249af3e Merge "Improve help text for events-list command options" 2017-01-06 00:22:49 +00:00
Naoya Harada
5cd75e8727 Improve help text for events-list command options
events-list command's help text for some options does not follow common
format. Also, *-events-list commands have similar issues. This patch
fixes help texts for these commands to make them clearer for users.

Change-Id: Icd85d13fee437bf0f83979eb6625377b38ce39ad
Closes-bug: #1628769
2017-01-05 13:09:00 +09:00
Naoya Harada
59ee90791d Fix invalid unit test code in python-tackerclient
Unit tests are not testing the behavior of command-line client
code properly since mox was replaced with mock in [1].

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

assert_called_once_with() should be called after the target
call of the patched method.

Change-Id: I99873e9cb1d75d1fa2e41c02b9f87dfa4f9ef1f7
Partial-Bug: #1572706
2017-01-05 09:43:47 +09:00
Jenkins
dbc71552f2 Merge "Implement client support for NSD" 2017-01-04 09:18:00 +00:00
Bharath Thiruveedula
1cf8ceb72e Implement client support for NSD
Change-Id: I5653f3bb627b81dfe356e2192c71b13c6cfe6924
Partially-implements: blueprint nsd-support
Co-Authored-By: Dharmendra Kushwaha<dharmendra.kushwaha@nectechnologies.in>
2017-01-04 13:30:18 +05:30
Jenkins
a6a2fa0975 Merge "Support parameter input for vnffg template" 2017-01-03 21:42:24 +00:00
Jenkins
69009d6dad Merge "Remove passing infra and mgmt driver from client" 2016-12-23 01:23:25 +00:00
Jenkins
3b99b49852 Merge "Replaced e.message with str(e)" 2016-12-23 01:22:51 +00:00
gecong1973
3f7cc06aff Replaced e.message with str(e)
For logging the exception message: e.message has been
deprecated. The preferred way is to call str(e).
more details:
https://www.python.org/dev/peps/pep-0352/

Change-Id: Ic22fbd37376843f714d2c1669d2cdc25a3569225
2016-12-23 00:58:02 +00:00
venkatamahesh
d90dac82ca Support parameter input for vnffg template
Change-Id: I93819ff19ae91ca5e24778e220d3d09b63532ddf
Implements: blueprint vnffgd-param-support
2016-12-21 17:19:37 +05:30
Jenkins
592f7d22b3 Merge "Fix oslo.i18n problems in python-tackerclient" 2016-12-21 01:57:51 +00:00
Jenkins
0373528ff3 Merge "Add __ne__ built-in function" 2016-12-21 01:54:07 +00:00
Janki
1e613792fd Remove passing infra and mgmt driver from client
This patch removes passing infra and mgmt driver as part of VNFD body from
client and API.

Change-Id: I4684e69b8993e6c35503317503dd73e2c13f44dd
Partial-Bug: #1630936
2016-12-20 13:25:24 +05:30
Lu lei
ef1585a024 Fix oslo.i18n problems in python-tackerclient
Help msg in tacker project should support oslo.i18n. But
tests directory faces developer, So it needn't support oslo.i18n.

Co-Authored-By: ShuYingya<yingya.shu@easystack.cn>
Change-Id: I60106b106cfd77b46663ff35a2735cfa5ea158f0
2016-12-16 18:46:50 +08:00
venkatamahesh
f673cea49c Changed the help message of --config-file parameter
In this patch the description for --config-file parameter
is modified to be more informative

Change-Id: I61213a675cbb48a89ddb0b2f66fa1bd5bfab6efa
2016-12-06 05:46:37 +00:00
howardlee
2b3b1792d5 Add __ne__ built-in function
In Python 3 __ne__ by default delegates to __eq__ and inverts the
result, but in Python 2 they urge you to define __ne__ when you define
__eq__ for it to work properly [1]. There are no implied relationships
among the comparison operators. The truth of x==y does not imply that
x!=y is false. Accordingly, when defining __eq__(), one should also
define __ne__() so that the operators will behave as expected.

[1]https://docs.python.org/2/reference/datamodel.html#object.__ne__

Change-Id: I6adceadb6e3749e34cf847654f28a3b6eea832fd
2016-11-16 16:20:29 +08:00