252 Commits

Author SHA1 Message Date
Zuul
d1d41e5f7d Merge "Enhance vnf package list command to support filtering of vnf packages" 2020-04-10 07:21:33 +00:00
Shubham
74cfe26551 Enhance vnf package list command to support filtering of vnf packages
Added support for below arguments.

1)--filter
2)--all_fields
3)--fields
4)--exclude_fields
5)--exclude_default

Change-Id: I2bac92581bb4be3f138107d108ecf9b38605f5cc
2020-04-10 00:23:59 +00:00
Andreas Jaeger
d2f4c1748c Update hacking for Python3
The repo is Python 3 now, so update hacking to version 3.0 which
supports Python 3.

Fix problems found.

Change-Id: I7a43ff6d91bad919dcaa450e66ef492a1d3a03ef
2020-04-09 19:55:03 +02:00
Shubham Potale
1736ae7895 Add command for Fetch VNF package API
Added command support for downloading csar vnf package contents.

Change-Id: I6371ebdf0dd9d127ca88bcd721a31036d11ea5fc
Implements: bp enhance-vnf-package-support-part1
2020-04-09 07:21:19 +00:00
Shubham Potale
ac02653f21 Add command to read vnfd of vnf package API
Added command support for fetching VNFD of the vnf package.

Please see results here:-
http://paste.openstack.org/show/789212/

Change-Id: Ifa15ddf7ff306ed2705cf7a170d9e9f512491fba
Implements: bp enhance-vnf-package-support-part1
2020-04-09 07:21:06 +00:00
Shubham Potale
af4d8343ad Add command for update vnf package API
Added command support for updating vnf package.

Please see results here:-
http://paste.openstack.org/show/788463

Change-Id: I0cd32d531db569b7013332fcfaaaefde403e7aed
Implements: bp enhance-vnf-package-support-part1
2020-04-09 07:05:54 +00:00
Zuul
b8f2b39fee Merge "OSC support to heal vnf" 2020-04-01 10:55:49 +00:00
Zuul
05f5fecead Merge "OSC support to list vnfs" 2020-04-01 10:55:35 +00:00
Zuul
a5466fe493 Merge "OSC support to delete and terminate vnf" 2020-04-01 10:54:57 +00:00
Zuul
8f4bc407bb Merge "OSC support to instantiate and show vnf" 2020-04-01 10:54:56 +00:00
Zuul
9b63a7b92f Merge "OSC support to create vnf using vnflcm API" 2020-04-01 10:54:55 +00:00
Shubham Potale
5581c3513f OSC support to heal vnf
Added a new command ``openstack vnflcm heal`` to heal vnf
instance.

Blueprint: support-etsi-nfv-specs
Change-Id: I31165e1def0a53a56e1fcefd1877630712bfab5e
2020-03-31 12:03:01 +00:00
Shubham Potale
9c7708bd53 OSC support to list vnfs
Added a new command ``openstack vnflcm list`` to list the vnf instances.

Blueprint: support-etsi-nfv-specs
Change-Id: I4ef7ac0dd4d4744c74ceb13df6b4438a090ac72a
2020-03-31 12:02:09 +00:00
Shubham Potale
c3a8f25947 OSC support to delete and terminate vnf
Added new commands ``openstack vnflcm delete`` and
``openstack vnflcm terminate``.

Blueprint: support-etsi-nfv-specs
Change-Id: I72ea99c2149621428a34403504f28f9e9b1a3719
2020-03-31 12:01:57 +00:00
Shubham Potale
eae2c896cd OSC support to instantiate and show vnf
Added new commands ``openstack vnflcm instantiate`` and
``openstack vnflcm show``.

Blueprint: support-etsi-nfv-specs
Change-Id: I528e20be6ec01c61b5ca6d646972a9ae22f1c158
2020-03-31 12:01:28 +00:00
Zuul
6eb5a970a9 Merge "Support updating VNF parameters in tackerclient" 2020-03-27 14:21:19 +00:00
Shubham Potale
66efce28d4 OSC support to create vnf using vnflcm API
Added a new command ``openstack vnflcm create`` to create a new vnf.

Blueprint: support-etsi-nfv-specs
Change-Id: Ia90955df6ac141661c3d58e4de4e098c4cb51aab
2020-03-14 11:19:50 +05:30
Alfredo Moralejo
a3fcbb0966 Replace assertItemsEqual with assertCountEqual
assertItemsEqual was removed from Python's unittest.TestCase in
Python 3.3 [1][2]. We have been able to use them since then, because
testtools required unittest2, which still included it. With testtools
removing Python 2.7 support [3][4], we will lose support for
assertItemsEqual, so we should switch to use assertCountEqual.

[1] - https://bugs.python.org/issue17866
[2] - https://hg.python.org/cpython/rev/d9921cb6e3cd
[3] - testing-cabal/testtools#286
[4] - testing-cabal/testtools#277

Change-Id: I1d77929d26af29e5d060eefdac85a5da2dd145d6
2020-03-13 14:33:05 +01:00
Hiroo Kitamura
a4c2b291b2 Support updating VNF parameters in tackerclient
Implementation to update parameters of created VNF in python-tackerclient.

Change-Id: Ifd5b07bdd1445639db4c23f6b92a3350d4ae22a5
Blueprint: https://blueprints.launchpad.net/tacker/+spec/reservation-vnfm
2020-02-27 09:13:48 +00:00
Shubham Potale
727129d958 Show proper error message for non-existing vnf package
When you pass non-existing vnf package uuid to ``vnf package upload``
command as shown below, it doesn't show user-friendly message as it's
shown in case ``vnf package show`` command.

  $openstack vnf package upload --path sample_vnf_pkg.zip dummy-id
  "404-tackerFault"

This patch fixes this issue and now it will output below error message:

  $openstack vnf package upload --path sample_vnf_pkg.zip dummy-id
  Can not find requested vnf package: dummy-id

Change-Id: I84de0140463d6bd834d3bcc22f6a6cea1fef9130
Closes-Bug: #1799683
2019-10-16 14:50:21 +05:30
Zuul
842cb75c53 Merge "fix:"openstack vnf set" command can't execute" 2019-09-22 14:20:47 +00:00
Zuul
4bcde28490 Merge "fix:osc scale is failed." 2019-09-20 17:09:07 +00:00
nirajsingh
31b7690858 Add restFul methods to fix backward compatibility issue
Tacker functional tests and applications using old version
of tackerclient might be using post/get/delete/put/list
method interfaces provided by Client in their applications.
These interfaces were removed in the recent changes [1]
because of which tacker tests are failing.

Added post/delete/put/get/list methods back to the Client class.

[1] : https://review.opendev.org/#/c/679956

Closes-Bug: #1844625

Change-Id: I803298dbc16dea9e58ec2a0a5fe3afe431c8532c
2019-09-20 06:04:00 +00:00
Shubham Potale
ffaf88505a Add command for upload vnf package API
Added support vnf package upload command and their unit test cases.

Please see result here.
http://paste.openstack.org/show/766299/

Change-Id: I88da4e209413a00d52c73fc83983ed2f5fd273c6
Implements: bp tosca-csar-mgmt-driver
2019-09-13 10:34:12 +00:00
Shubham Potale
11e23eed22 Add commands for list, show and delete vnf package API's
Added support for below three commands and their unit test cases.
1.vnf package list
2.vnf package show
3.vnf package delete

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

Change-Id: I47e3e99a42aa36ab286fa01802999deb964a168f
Implements: bp tosca-csar-mgmt-driver
2019-09-13 10:32:19 +00:00
Shubham Potale
9940682bc8 OSC support for VNF package APIs
Added support vnf package create command and their unit test cases.

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

Change-Id: Idf59847aaf33e360dae696eae819d217ae63570f
Implements: bp tosca-csar-mgmt-driver
2019-09-13 10:27:48 +00:00
Hiroya Nakaya
9a1020fc84 fix:"openstack vnf set" command can't execute
internal function's args is wrong.

Closes-Bug: #1839232

Change-Id: Iea1becdc0ee5dea3a94d843c558f28bce38e4d1c
2019-08-07 04:51:13 +00:00
dharmendra
1e280fb1fe Adds support force delete for NS.
This patch adds '--force' parameter to NS delete command, to delete NS
forcefully.

blueprint force-delete-resources

Change-Id: I7d8eb7ae63f9e43da37701e3e8312e650ea5bd3c
2019-07-30 11:05:30 +00:00
Hiroya Nakaya
983a2402a4 fix:osc scale is failed.
parameter which isn't used is removed.
changed Command type.

Closes-Bug:#1834548

Change-Id: Id884f9ebd26f311ebc213bcadff6019aaee5cd3a
2019-07-26 04:48:25 +00:00
jacky06
ab9aa0da69 Update hacking version
Use latest release 1.1.0 and compatible changes w.r.t pep8

Change-Id: I9596666d9bac8efae8ae22e027aca49a432069dc
2019-03-06 22:28:37 +08:00
Zuul
f4839f308a Merge "Adds support force delete resources" 2019-02-12 08:35:42 +00:00
dharmendra
1fdf521ba9 Parameter changed from mgmt_url to mgmt_ip_address
In continuation of [1], fixing the same in tackerclient.
[1]: https://review.openstack.org/#/c/490471

Change-Id: I45dfe784e20f96cff12e346d34b1cce856a564db
2019-02-04 09:20:48 +00:00
Cong Phuoc Hoang
66794e007b Adds support force delete resources
This patch adds '--force' parameter to vnf delete command,
to force delete VNF instances.

e.g: openstack vnf delete --force VNF1

blueprint force-delete-resources

Change-Id: I20aee4ecb66643dfa5fad490956d898f7e851411
2018-11-28 10:25:44 +09:00
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