219 Commits

Author SHA1 Message Date
Zuul
f4e696dfe0 Merge "Updates in NS and VNFFG list commands" 2018-07-19 02:16:24 +00:00
Cong Phuoc Hoang
ba372bfcfd Updates in NS and VNFFG list commands
This patch will do 2 things:
1. Add 'vnf_ids' and 'vnffg_ids' fields as outputs from network
service list command. Users can know which VNFs or VNFFG, that
belongs to specific NS.
2. Add 'ns_id' fields to VNFFG list command, that shows which
network service the current VNFFG belongs to it.

Partially-implements: blueprint vnffg-ns

Change-Id: If6c5550f94e676fb2062e32ddc069acd5dfb6490
2018-07-11 16:28:56 +09:00
dharmendra
ed23c0e7bd Fix: Tackerclient failed to handle yaml load error.
While onboarding a vnfd with infected vnfd file, yaml.load() raised exception.
Due to which instead of giving meaningful error message, tackerclient raised
traces with TypeError.
Fixing this issue with proper error handling.

Change-Id: I7a4150a898fcf99d8ffbc97e16da6a219cade93d
Closes-Bug: #1780214
2018-07-10 00:49:59 +00:00
Zuul
2ddc24c60e Merge "Fix cannot show the VNFFGD template" 2018-03-17 00:43:36 +00:00
rtmdk
f042f53d97 Fix some reST field lists in docstrings
Probably the most common format for documenting arguments is reST field
lists [1]. This change updates some docstrings to comply with the field
lists syntax.

[1] http://sphinx-doc.org/domains.html#info-field-lists

Change-Id: Ic87b30963f99552e57d10e8429a06511744b2489
2018-03-16 09:01:28 +00:00
Zuul
9879a46f58 Merge "Fix the VNFFG update osc command" 2018-03-14 15:13:00 +00:00
Zuul
4308bf66ad Merge "Deperate tacker command lines" 2018-03-13 14:04:03 +00:00
gongysh
a325233647 Deperate tacker command lines
Since openstack tacker plugins are almost done, it is time
to deprecate the tacker command lines.

test paste log http://paste.openstack.org/show/699593/

Closes-bug: #1755443

Change-Id: I0c233f5f3003a50a6b76d6729c4d228cbba182a7
2018-03-13 21:45:01 +08:00
dharmendra
e40b9c8a47 Complete VNF osc commands
Please see the results here:
http://paste.openstack.org/show/696708/
http://paste.openstack.org/show/699455/ (list commands)

Change-Id: Iea353ef119710660e19fd4d8f209ebe500cd0afe
Implements: blueprint tacker-support-python-openstackclient
Co-Authored-By: Nguyen Hai <nguyentrihai93@gmail.com>
2018-03-13 18:42:20 +09:00
Nguyen Hai
d7a59b951d Fix the VNFFG update osc command
VNFFG update osc command misuse create_vnffg function.

Change-Id: If3fbb077936c6c698744210384373b77d5986e64
Implements: blueprint tacker-support-python-openstackclient
Closes-Bug: #1754793
2018-03-13 15:12:00 +09:00
Nguyen Hai
30bd8ffd1a Complete VNFFG & related VNFFG osc commands
openstack vnf graph
openstack vnf chain
openstack vnf classifier
openstack vnf network forwarding path

Please see the results here:
http://paste.openstack.org/show/684261/

Change-Id: I02c18a460eb412af76d1aa1c77102ba92e174566
Implements: blueprint tacker-support-python-openstackclient
2018-03-03 22:25:21 +09:00
Zuul
04584a666d Merge "Complete NS osc commands" 2018-03-01 02:17:18 +00:00
Zuul
9b2027930b Merge "Do not have to mention ssl_ca_cert in vim config file (client)" 2018-03-01 02:13:41 +00:00
Nguyen Hai
09c13e1c5d Complete NS osc commands
Please see the results here:
http://paste.openstack.org/show/686780/

Change-Id: If71aa334bc988eba7939b5d55692d80530ba0bba
Implements: blueprint tacker-support-python-openstackclient
2018-03-01 01:48:49 +09:00
Nguyen Hai
7a13c3ce96 Complete Event osc commands
Please see the results here:
http://paste.openstack.org/show/683041/

Change-Id: Ib6b35b5757fb63465e0f587e47c122313b909720
Implements: blueprint tacker-support-python-openstackclient
2018-02-28 23:11:54 +09:00
Nguyen Hai
75b316ae51 Complete NSD osc commands
Please see the results here:
http://paste.openstack.org/show/680416/

Change-Id: I9abbd140cdbe0a8245d7903c5c7e90b61f92eeee
Implements: blueprint tacker-support-python-openstackclient
2018-02-28 15:40:59 +09:00
Trinh Nguyen
17d108e146 Do not have to mention ssl_ca_cert in vim config file (client)
Current tacker client requires us to mention ssl_ca_cert
and set it to None if we don't want to use ssl cert. This
patch along with another patch on the tacker server side
will make ssl_ca_cert a truly optional config. And, only
the correct ssl_ca_cert will be able to authenticate.

Tacker Server changes: https://review.openstack.org/#/c/546580/

Change-Id: Ic87fe3382e100183c685c3b34768a5a5de889982
2018-02-26 16:17:40 +09:00
Zuul
9a36c0e4ea Merge "Add --tenant-id in VIM & VNFD osc commands" 2018-02-26 05:31:36 +00:00
Nguyen Hai
d967a881aa Complete VNFFGD osc commands
Please see the results here:
http://paste.openstack.org/show/680427/

Change-Id: I800c71a2c2cf5d1710ed6b4c9e4d5b63b31ced4f
Implements: blueprint tacker-support-python-openstackclient
2018-02-22 23:08:45 +09:00
Nguyen Hai
a7b17cc238 Add --tenant-id in VIM & VNFD osc commands
Compare to tacker commands, the vim and vnfd in osc commands
do not have --tenant-id (or project id) argument when registering
or creating the vim or vnfd.

Change-Id: I53022ca915d5119668777fcebf2af25199b5c326
Implements: blueprint tacker-support-python-openstackclient
2018-02-22 23:02:10 +09:00
Nguyen Hai
82c70bd5a1 Fix cannot show the VNFFGD template
There is the wrong index of the vnffgd data in the code.

Change-Id: I72050c8afa8f549a4ac35036ccd969b14d5f3f81
Closes-Bug: #1750865
2018-02-22 02:16:05 +09:00
Zuul
c5eb5c319f Merge "Fix typo" 2018-02-21 04:47:57 +00:00
Zuul
1cb2431782 Merge "Complete VNFD osc commands" 2018-02-16 08:33:58 +00:00
gaofei
c5ed02513c Fix typo
Change-Id: I7d6e3c0dea4a4a37fd39f4b0c3150b655069b0c9
2018-02-09 15:22:25 +08:00
dharmendra
de7efad575 Complete VNFD osc commands
Change-Id: Ifd5c7236dc5b4b92e1488271a1fe79a846995a69
Implements: blueprint tacker-support-python-openstackclient
2018-02-08 07:23:07 +00:00
Zuul
5d338b8a75 Merge "Implement Tacker Client to support VNF cluster features" 2018-02-07 08:13:35 +00:00
LongKB
4d0cd3b7f2 Implement Tacker Client to support VNF cluster features
Adding a new CLI commands to support VNF cluster and VNF cluster
member CRUD operations:
      tacker cluster-create
      tacker cluster-show
      tacker cluster-list
      tacker cluster-delete

      tacker cluster-create
      tacker cluster-show
      tacker cluster-list
      tacker cluster-delete

Implements: blueprint policy-based-vnf-cluster
Change-Id: I76537566000f3d1724c9f566910389ede23f49b7
Co-Authored-By: xuan0802 <thespring1989@gmail.com>
2018-02-07 15:57:16 +08:00
Zuul
8509a590aa Merge "Show classifier's name" 2018-01-31 15:16:26 +00:00
Dimitrios Markou
99fc9b7bda Show classifier's name
In continuation of this patch [0] we are adding the functionality
of showing the names of the existing classifiers when the classifier-list
command is getting executed.

[0]: https://review.openstack.org/#/c/532203/

Depends-On: Ia586061c578a99662d49ad284d1ff313c350e1f3

Change-Id: If6d76a66ab0d37662d1b28fe1786b6e0ffc8171d
Signed-off-by: Dimitrios Markou <mardim@intracom-telecom.com>
2018-01-31 16:37:42 +02:00
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