garciadeblas [Fri, 27 Nov 2020 12:48:06 +0000 (12:48 +0000)]
Backwards compatibility with old descriptors; updated override flags in vnfd/nsd-create
Change-Id: I40a4d033b6d2f07cdbd60e920d402dead35702d5
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
garciadeblas [Thu, 26 Nov 2020 10:21:45 +0000 (10:21 +0000)]
updated IM requirement to use sol006 branch
Change-Id: I597ae00ca7d01df08fe1bd91b201687ffe9044e0
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
garciaale [Wed, 25 Nov 2020 14:06:38 +0000 (11:06 -0300)]
Fixes CPU pinning policy when overriding VNFD EPA
Change-Id: I058b289abe9be006056e0755aee8fcd002996330
Signed-off-by: garciaale <agarcia@whitestack.com>
garciaale [Thu, 19 Nov 2020 15:04:56 +0000 (12:04 -0300)]
Changes package_tool to also support SOL006 descriptors
Change-Id: Id93031ddd53ce02297c740b61d44951a7678952d
Signed-off-by: garciaale <agarcia@whitestack.com>
garciaale [Tue, 10 Nov 2020 20:12:10 +0000 (17:12 -0300)]
Adds make and wget as snapcraft dependencies since they are now required by OSM-IM for SOL006
Change-Id: Ic7715836d21a16887fff2878ba63a0e38f1e1530
Signed-off-by: garciaale <agarcia@whitestack.com>
garciaale [Wed, 4 Nov 2020 18:46:38 +0000 (15:46 -0300)]
Changes method for detecting package type, as the catalog option does not exist on SOL006 and the root is simply called nsd or vnfd
Change-Id: I249ef23e7d569c159cdd6d6361020b7558ffd2e2
Signed-off-by: garciaale <agarcia@whitestack.com>
garciaale [Tue, 3 Nov 2020 20:15:47 +0000 (17:15 -0300)]
Changes usage of vnfd['name'] property because it is called 'product-name' in SOL006
Change-Id: Idb142e78a47999e1c2aaab54673dc6225c4e2124
Signed-off-by: garciaale <agarcia@whitestack.com>
garciaale [Mon, 2 Nov 2020 19:42:56 +0000 (16:42 -0300)]
Updates SOL006 branch with master, and configures osmclient for SOL006
Change-Id: I37e96a6c85033a12d40cb013c4e5b1c5b8a7790a
Signed-off-by: garciaale <agarcia@whitestack.com>
garciaale [Wed, 21 Oct 2020 18:06:16 +0000 (15:06 -0300)]
Updates branch sol006 with master
Change-Id: Ie684cefe015b1fd167d26af5911e1b216499507d
Signed-off-by: garciaale <agarcia@whitestack.com>
garciadeblas [Wed, 4 Dec 2019 12:24:32 +0000 (12:24 +0000)]
Fix bug 946 - removed unnecessary check for additionalParams
Change-Id: I3afdd68a17f78fcbea8f6527d2781c36988ec1a4
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
garciadeblas [Wed, 4 Dec 2019 09:18:47 +0000 (09:18 +0000)]
Updated help message for repo-type
Change-Id: I8adcd95fec1509406b35a4b6da942bb699e5a899
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
tierno [Tue, 3 Dec 2019 23:55:50 +0000 (23:55 +0000)]
change repo type to helm-chart,juju-bundle
Change-Id: I69a8a8613ef81ef396d1da55376a2a306960eb2a
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
garciadeblas [Tue, 3 Dec 2019 11:39:34 +0000 (12:39 +0100)]
setup.py: added description, maintainer and license
Change-Id: I37c2ff61e3078aa5ed119836df15ba62e90828b4
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
garciadeblas [Mon, 2 Dec 2019 13:57:02 +0000 (13:57 +0000)]
osm version: added client version
Change-Id: I698b75d3b7771c5409a741008eeb21468bf4eeff
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
tierno [Sat, 23 Nov 2019 23:01:26 +0000 (23:01 +0000)]
new 'osm version' command to get server version
Change-Id: Ic01afc3dec3475dd390f0e6a464bd08d6d596faf
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
garciadeblas [Fri, 22 Nov 2019 21:18:09 +0000 (22:18 +0100)]
Use of PATCH method instead of PUT for projects
This applies to projects, users, roles, vims, wims
and sdncontrollers
Change-Id: I81badf6f4117d26c8a8f613336dba520377f9612
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
garciadeblas [Wed, 27 Nov 2019 18:03:07 +0000 (19:03 +0100)]
Fix stdeb.cfg to include osm-im dependency, license added to stage-test
Change-Id: Ic273df6b566acc26e788596d95d619428702fd36
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
garciadeblas [Mon, 4 Nov 2019 23:40:11 +0000 (00:40 +0100)]
New commands for managing K8s cluster and repos
New options for vnf-show to show details of a kdu in a VNF instance
Use of textwrapper to wrap text of the prettytables for vnf-show,
ns-show, k8scluster-show, ns-list and vim-show
Updated trunc_text function to fix truncation to lenghth
Change-Id: I6f61533d6eff267d7858bb367e41e28dca8447ac
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
Felipe Vicens [Fri, 25 Oct 2019 14:42:41 +0000 (16:42 +0200)]
Feature 8047: osmclient package creation and validation tool
Change-Id: Ie1e0be7f5029a4b323fa585f8aa39631568176ac
Signed-off-by: Felipe Vicens <felipe.vicens@atos.net>
garciadeblas [Sat, 9 Nov 2019 21:39:15 +0000 (22:39 +0100)]
migration to Python3: fix printing exception message
Change-Id: Icea828998a0858e82658577c1c1b3701e8d1e31b
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
pinoa [Tue, 5 Nov 2019 13:28:15 +0000 (14:28 +0100)]
overwrite parameter deprecated and help parameter
Change-Id: Ia2474fc1bd2c42e287f19517df216e0619eee7cb
Signed-off-by: pinoa <alberto.pino@altran.com>
garciadeblas [Thu, 7 Nov 2019 08:30:30 +0000 (09:30 +0100)]
Replace deprecated yaml.load by yaml.safe_load
Change-Id: I215da5edd978d222d807bef49e4938eb47e3f96b
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
garciadeblas [Tue, 5 Nov 2019 23:06:26 +0000 (00:06 +0100)]
Improved help messages, increased width
Change-Id: Ic146afd4f6b55bd5583bedf379e45026c0559c8d
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
garciadeblas [Tue, 5 Nov 2019 16:39:52 +0000 (17:39 +0100)]
wait.py: updated POLLING_TIME_INTERVAL to 5s for --wait option
Change-Id: Ie64f69c18107921335f992aabeb53433a5f03064
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
garciadeblas [Tue, 8 Oct 2019 16:47:53 +0000 (18:47 +0200)]
Client class: updated defaults sol005=True
Change-Id: If440219c74c4eea9db880aa82e16cd4224723cdb
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
garciadeblas [Tue, 8 Oct 2019 16:30:46 +0000 (18:30 +0200)]
Osmclient migration to Python3 (feature 8031)
Change-Id: I8de971f0914919ade4e8f19ed9da7ce06e775d3b
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
garciadeblas [Tue, 17 Sep 2019 14:49:57 +0000 (16:49 +0200)]
Removed deprecated options (from Rel THREE)
Change-Id: I9aaacaad37861b54314a65e23fc014201d5a124d
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
tierno [Fri, 21 Jun 2019 09:48:31 +0000 (09:48 +0000)]
bug 773: allow ns-action without primitive_params
allow execute primitives over a vdu
Change-Id: Ie72516f409d2613df0ba8bc9544424669d379813
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
tierno [Fri, 30 Aug 2019 07:24:06 +0000 (09:24 +0200)]
Merge "Bug 820 fix - Unable to update NST via CLI"
kuuse [Fri, 9 Aug 2019 11:46:43 +0000 (13:46 +0200)]
Improved 'detailed-status' for VIM/WIM/SDN suboperations
For any VIM/WIM/SDN operation using the '--wait' option,
the output has been retrieved from the following field:
'_admin.detailed-status'.
With the implementation of VIM/WIM/SDN 'suboperations',
there is a new status field, one for each operation:
'_admin.operations[current_operation]detailed-status'
To use this new status field, both LCM and NBI must support it:
https://osm.etsi.org/gerrit/#/c/7767 : LCM support for operations
https://osm.etsi.org/gerrit/#/c/7734 : NBI support for current_operation
Change-Id: Id4f9b1c95f746666a254c4e20ab91b128c2569ff
Signed-off-by: kuuse <johan.kuuse@altran.com>
vijay.r [Fri, 9 Aug 2019 08:20:55 +0000 (13:50 +0530)]
Bug 820 fix - Unable to update NST via CLI
Change-Id: Ia7050dead57d654bbacd442953298dd39d99f57f
Signed-off-by: vijay.r <vijay.r@tataelxsi.co.in>
tierno [Thu, 13 Jun 2019 22:38:05 +0000 (22:38 +0000)]
bug 767: uniform role format
Change-Id: I977c4ef37218596ada20df7be3ff94b711d2de08
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
kuuse [Fri, 31 May 2019 10:25:42 +0000 (12:25 +0200)]
Improvement: Return more states in the 'detailed-status' field - client side
Change-Id: I425d3a9fe188d07a9be20626ce641325a8602e6a
Signed-off-by: kuuse <johan.kuuse@altran.com>
kuuse [Mon, 10 Jun 2019 16:04:59 +0000 (18:04 +0200)]
Improvement: Check that return code is 0 for successful operations, and non-zero for errors.
Change-Id: Id6272b79f4c3cfe22d2ba8fc09dec13fc8ebd4b7
Signed-off-by: kuuse <johan.kuuse@altran.com>
tierno [Thu, 13 Jun 2019 09:06:00 +0000 (09:06 +0000)]
fix bugs 747 757: fix user-update interface
Change-Id: Ic526071cd16675a5a89d7fb6285a1654e88daae8
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
tierno [Mon, 10 Jun 2019 15:53:27 +0000 (15:53 +0000)]
fix bug 643 750. Allow project update to change name
Change-Id: I87913f113ca59fb311f11bdbd8e0cb20e09c2aca
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
tierno [Mon, 10 Jun 2019 12:20:44 +0000 (12:20 +0000)]
fixing bug 747: strip instead of trim
Uniform words: project_role_mappings, username
Change-Id: I3eac67c605421718d8c9311d0c3021d2db71c2a5
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
garciadeblas [Thu, 6 Jun 2019 15:55:09 +0000 (17:55 +0200)]
debug bug 710: increased verbosity of ns.get_field, increased sleep for wait_for_value
Change-Id: I526b92892500ed989c8d0de2d0d8dfc1d78b9eee
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
Felipe Vicens [Wed, 5 Jun 2019 17:26:04 +0000 (19:26 +0200)]
Fix bug #677 osm nsi-op-list name' and 'osm nsi-op-show id' returns null
Change-Id: I95e9691e9ef0ba8aafb40d6a0a207949c3cfe147
Signed-off-by: Felipe Vicens <felipe.vicens@atos.net>
kuuse [Thu, 30 May 2019 07:42:05 +0000 (09:42 +0200)]
Feature 7181: Provide real-time feedback in CLI upon request using the '--wait' option
Change-Id: I238c78fa65ba5e41f2e690c4c3f0d1e8aac9de19
Signed-off-by: kuuse <johan.kuuse@altran.com>
Eduardo Sousa [Thu, 30 May 2019 12:23:04 +0000 (13:23 +0100)]
Maintaining format for project_role_mapping for creating and listing
Change-Id: I725451a39e32431a23745b4a20f7823fce090793
Signed-off-by: Eduardo Sousa <eduardo.sousa@canonical.com>
Eduardo Sousa [Sun, 31 Mar 2019 22:49:14 +0000 (23:49 +0100)]
Adding role management
Change-Id: I00a7db2881ff62eb79910c876c7f46dbad79fa23
Signed-off-by: Eduardo Sousa <eduardo.sousa@canonical.com>
madavi [Tue, 28 May 2019 05:26:29 +0000 (10:56 +0530)]
Bug 704 Minor code change for exception details
Change-Id: I66bb530b17a774de1bc328182e53eb4035f09121
Signed-off-by: madavi <jm00553988@techmahindra.com>
tierno [Mon, 25 Mar 2019 12:08:51 +0000 (12:08 +0000)]
move wim_account parameter inside config of ns-create
Change-Id: I1f8ce498d7b954b954c7511359a0dc9763819cc6
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
tierno [Thu, 21 Mar 2019 13:03:53 +0000 (13:03 +0000)]
(bug 650) adding WIM account instantiation parameter.
Allow manual selection of wim or deployment without Wim
Change-Id: Ic03816d33aebb3843fc1bb0063bdbc91e43ea069
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
tierno [Wed, 13 Mar 2019 09:55:51 +0000 (09:55 +0000)]
fix bug 647 user creation with project prompt
Change-Id: I6d006d25b33ec8693ffaf71252c6cc009a63b5ef
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
garciadeblas [Wed, 30 Jan 2019 10:26:22 +0000 (11:26 +0100)]
osm.py: updated table header for vnfd-list and aliases to be agnostic of VNF type
Change-Id: I2823aff813aa75a4c21672283c1409e7b478c23f
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
tierno [Tue, 29 Jan 2019 11:43:10 +0000 (11:43 +0000)]
bug 624 fix user management for sol005
Change-Id: I3aa13a9f9c5c22411af90ba98dbe5d0d5a0cfd5d
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
tierno [Mon, 21 Jan 2019 14:57:13 +0000 (14:57 +0000)]
adding SOL005 additionalParams to ns/nsi creation
Change-Id: Ia871bd316a94af03acec1863dd2b8acfe43b3505
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
garciadeblas [Mon, 14 Jan 2019 17:17:15 +0000 (18:17 +0100)]
Support of WIM accounts in osmclient
Change-Id: I3395f6dc78d8060d7ae3aa3cbbef7ca9fad8713a
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
garciadeblas [Tue, 4 Dec 2018 15:58:03 +0000 (16:58 +0100)]
fix help message for osm vnf-list and nf-list
Change-Id: I58232f98816e0e19c8aef8a35c475db725ea43a0
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
garciadeblas [Mon, 3 Dec 2018 17:52:07 +0000 (18:52 +0100)]
new alias nf-list for vnf-list
Change-Id: I0d1c516a2e2185ff9ce88a107b1d9e3f6cf316b0
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
garciadeblas [Mon, 3 Dec 2018 17:31:51 +0000 (18:31 +0100)]
fix update vnfd and nsd
Change-Id: Ib38af258d4980f76880a40db0fdac29fe478be57
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
garciadeblas [Mon, 3 Dec 2018 11:58:13 +0000 (12:58 +0100)]
vnfd-list and vnfpkg-list to use same options as nfpkg-list
Change-Id: I610ea5b4635b78e76d5217bee1216cb84e8230a1
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
garciadeblas [Mon, 3 Dec 2018 11:33:06 +0000 (12:33 +0100)]
fix pdu_create and nfpkg_list
Change-Id: Id9e9dd6bfe4e9c8bc664030af4ae1846860f7aae
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
garciadeblas [Sun, 2 Dec 2018 12:08:52 +0000 (13:08 +0100)]
osm.py: updated nfpkg-list to include nf_type filter option
Change-Id: I3d272aff9027495e7fef07e6a6dc6a2859637886
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
garciadeblas [Sun, 2 Dec 2018 11:22:53 +0000 (12:22 +0100)]
Updated .gitignore: dists and pools folders
Change-Id: I3e1c5b28758d21c8bad3c6db0fa53f815180ecb0
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
garciadeblas [Sun, 2 Dec 2018 10:40:48 +0000 (11:40 +0100)]
osm.py: new aliases nfpkg-* for vnfpkg-*
Change-Id: I0007c206deb4e1108c21a7bfb0066210a265885e
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
garciadeblas [Tue, 6 Nov 2018 04:56:15 +0000 (05:56 +0100)]
support of PDUs
Change-Id: Ifb20578016ef7212399db6b4c12aa5a30376c67e
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
garciadeblas [Sat, 1 Dec 2018 00:12:19 +0000 (01:12 +0100)]
osm.py: added config_file option to nsi_create
Change-Id: Ief0707cec43fc5da3ff54117690fb121991924f0
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
garciadeblas [Mon, 29 Oct 2018 12:42:42 +0000 (13:42 +0100)]
Support of network slices
Change-Id: I57a003b880c67bdeddae6f090da63e6d4747127b
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
garciadeblas [Tue, 29 May 2018 12:15:43 +0000 (14:15 +0200)]
Support of user and project mgmt in sol005 client
Change-Id: I5880e0cb1efecdbed8c5c3ab800e5e2ed6cda517
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
garciadeblas [Wed, 28 Nov 2018 13:51:18 +0000 (14:51 +0100)]
Fix in osm.py: vnf-scale parameters
Change-Id: I92da723a32190d00cd967e139d803be3af69acda
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
garciadeblas [Tue, 27 Nov 2018 12:28:57 +0000 (13:28 +0100)]
Renamed ns-scale-vdu to vnf-scale. Refactored scale code from osm.py to ns.py
Change-Id: Ifd16183f02a7f4b7e8a7cab3bba84de611f0b671
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
garciadeblas [Tue, 27 Nov 2018 10:53:33 +0000 (11:53 +0100)]
Added Build-Depends to stdeb.cfg to fix warnings
Change-Id: Ie1201f1d0c1853852a08ce3fb16131777b2d1f7c
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
garciadeblas [Tue, 27 Nov 2018 10:55:35 +0000 (11:55 +0100)]
Merge "Added ns-scale-vdu command for VDU scaling"
tierno [Mon, 25 Jun 2018 09:30:43 +0000 (11:30 +0200)]
Added ns-scale-vdu command for VDU scaling
Change-Id: Ie4da5cd451cd7e0fcd1dec6a0e260c05cd7b28b4
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
garciadeblas [Tue, 6 Nov 2018 04:02:45 +0000 (05:02 +0100)]
OSM_HOSTNAME defaults to 127.0.0.1 instead of None
Change-Id: I8b53c03daf1b244feedd00a3457ef75b907b2e70
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
garciadeblas [Tue, 10 Jul 2018 07:38:26 +0000 (09:38 +0200)]
osm ns-create: new option --config_file
Change-Id: Ib6d12587923313e69a05e772251efde0e977ab67
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
garciadeblas [Tue, 6 Nov 2018 00:14:25 +0000 (01:14 +0100)]
vnf-list: support of filter string; documented help for --filter
Change-Id: I48c6d41e8f3cc69de34b00e5f7e1d2dfc21fc8f7
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
Michael Marchetti [Wed, 31 Oct 2018 16:19:15 +0000 (17:19 +0100)]
Merge "Add get_field method"
Michael Marchetti [Wed, 31 Oct 2018 16:03:40 +0000 (16:03 +0000)]
Add get_field method
Signed-off-by: Michael Marchetti <mmarchetti@sandvine.com>
gcalvino [Tue, 30 Oct 2018 11:16:43 +0000 (12:16 +0100)]
Change content-type header to text/plain for yaml and json files
Signed-off-by: gcalvino <guillermo.calvinosanchez@altran.com>
Change-Id: I5ff3d95d34780410e233f31b8e8a52e198912457
garciadeblas [Mon, 9 Jul 2018 12:09:33 +0000 (14:09 +0200)]
Updated .gitignore: .idea
Change-Id: I90e26f120355b376298555795e74599cce3a6633
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
garciadeblas [Mon, 29 Oct 2018 12:50:45 +0000 (13:50 +0100)]
Fix bug 557 about ssh keys
Change-Id: Id2ac54b0ba9eb7b1566e05f50b1f0e021866d826
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
Mike Marchetti [Fri, 28 Sep 2018 21:18:26 +0000 (17:18 -0400)]
Add version schedule pep440-git-full
Signed-off-by: Mike Marchetti <mmarchetti@sandvine.com>
Mike Marchetti [Fri, 31 Aug 2018 13:41:47 +0000 (09:41 -0400)]
Fix Content-Type for ns-create
The ns-create POST Content-Type was incorrectly set by any previous
HTTP call.
Signed-off-by: Mike Marchetti <mmarchetti@sandvine.com>
Mike Marchetti [Tue, 14 Aug 2018 16:15:16 +0000 (12:15 -0400)]
Add missing wait_for_package api method
Signed-off-by: Mike Marchetti <mmarchetti@sandvine.com>
Change-Id: Iec32a4795174c35d4e478184b4d4cfc65ab288f6
Mike Marchetti [Tue, 14 Aug 2018 13:16:33 +0000 (09:16 -0400)]
Match against correct version tag
Signed-off-by: Mike Marchetti <mmarchetti@sandvine.com>
peusterm [Fri, 15 Jun 2018 12:46:23 +0000 (14:46 +0200)]
Fix1: Package upload using Python3 was still broken:
Loading file contents using 'r' does not work in Python 3
and results in an encoding error. Replaced with 'rb'.
Fix2: Be more robust when MIME types are detected:
Treat 'application/x-gzip' as 'application/gzip'.
(This will also allow to use osmclient on OS X)
Change-Id: I430b2fae2c275803120a6815d01bb26bff26ebdc
Signed-off-by: peusterm <manuel.peuster@upb.de>
peusterm [Thu, 14 Jun 2018 19:32:55 +0000 (21:32 +0200)]
Fix: Make osmclient Python 3 compatible.
The Python 3 compatibility of osmclient was
completely broken, e.g., print statements without ().
This fixes are mostly done with the automated 2to3
conversion tool.
Some fixes (mixed tabs and spaces) were fixed by hand.
Change-Id: Idea46a4b07e55eaa5bcf5defff64af3f751d740f
Signed-off-by: peusterm <manuel.peuster@upb.de>
garciadeblas [Wed, 30 May 2018 08:17:16 +0000 (10:17 +0200)]
Fix bug in vnfd/nsd creation when reporting errors
Change-Id: I8c9fd2d7c4a81723a41082ad5c06d7d1540fda1b
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
garciadeblas [Tue, 29 May 2018 07:48:12 +0000 (09:48 +0200)]
--sol005 as default option
Change-Id: Ib834f4b17fdaf5203d7597edbea8400a540ac8a6
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
garciadeblas [Tue, 29 May 2018 07:16:10 +0000 (09:16 +0200)]
vnf-list: printing vim account id
Change-Id: I8e2260f8baaf8fe44f27cde36e969d8334c293f8
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
garciadeblas [Mon, 21 May 2018 22:49:13 +0000 (00:49 +0200)]
using http codes in sol005 client whenever possible
Change-Id: I30d5c9a4231c557468ba25d5dac32317eb095b04
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
garciadeblas [Mon, 21 May 2018 14:45:33 +0000 (16:45 +0200)]
fix bug in vim-create with config
Change-Id: I9b4030aa18c2274c06bc40a55b1fb8f2c1e40be0
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
garciadeblas [Fri, 18 May 2018 13:33:29 +0000 (15:33 +0200)]
fix bugs in vnf-list and vnf-show for sol005 client
Change-Id: Ia6368e2fbf358d4cfc4d46ed7856305f8bd80563
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
garciadeblas [Thu, 17 May 2018 13:27:21 +0000 (15:27 +0200)]
fix vim-update by using PUT and proper handling of SDN info
Change-Id: I6cdef6caa7e4456ef89997cdc4e0601641b47490
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
garciadeblas [Thu, 17 May 2018 13:02:43 +0000 (15:02 +0200)]
vnf-list and vnf-show for sol005 client
Change-Id: Ic0c63ebc425788da562987f7ad1416cc625aeeb3
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
garciadeblas [Thu, 17 May 2018 11:33:03 +0000 (13:33 +0200)]
vim-update dealing with SDN controller and port mapping
Change-Id: Ia913a3fda961fd47649ca8ee23b4c32d482881d2
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
garciadeblas [Wed, 16 May 2018 15:21:59 +0000 (17:21 +0200)]
new --force option for xxx-delete commands in sol005 client
Change-Id: Ib593840025e2e7cdf91a9c181deb9dc67f895b49
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
garciadeblas [Wed, 16 May 2018 13:29:46 +0000 (15:29 +0200)]
fix sol005 client so that delete_cmd output is processed in the caller function
Change-Id: I0311de2bfafd86bf26ac79f762d76cec9e7a065e
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
garciadeblas [Mon, 14 May 2018 16:22:40 +0000 (18:22 +0200)]
fixes for ns-alarm-create and ns-metric-export, disabled ns-alarm-delete
Change-Id: Ia3ea21d8b6d3eca158e0cded6ec34e7ac3a2313e
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
garciadeblas [Mon, 14 May 2018 14:06:22 +0000 (16:06 +0200)]
proper handling of http_codes in http.post_cmd
Change-Id: I7526522f11f2c7c991c61e0a8bbe99393bddbc85
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
garciadeblas [Thu, 10 May 2018 22:43:51 +0000 (00:43 +0200)]
Support of ns-alarm-create, ns-alarm-delete and ns-metric-export
Change-Id: Ife1bd4579756ad4bf484f211a74e06903fa993a1
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
garciadeblas [Thu, 10 May 2018 13:19:00 +0000 (15:19 +0200)]
adding missing help; fixing some checks of client version
Change-Id: I811b3c391063d5930ac7e1cf2454ba91e6a4d015
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
garciadeblas [Thu, 10 May 2018 12:34:13 +0000 (14:34 +0200)]
sdncontroller mgmt using sol005 api
Change-Id: I642035fa261e6bf41aa361b7db611dc9f0808631
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
garciadeblas [Thu, 10 May 2018 12:33:34 +0000 (14:33 +0200)]
support of PATCH method for sol005 client
Change-Id: Ic8c6c4c9250aae0da486d298dc5f796c6b6a2350
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
garciadeblas [Tue, 8 May 2018 07:33:07 +0000 (09:33 +0200)]
osm.py fix bug in ns-action parameters, missing action_name
Change-Id: I937cc42d65e0a595e27bf7e571de814eefa44f26
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
garciadeblas [Sat, 5 May 2018 20:55:25 +0000 (22:55 +0200)]
ssh key injection enabled with ns-create in sol005 client
Change-Id: I6d6569ea58cfef408f9345ef9eb403ec78a6fe48
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>