osm/osmclient.git
6 years agoFix1: Package upload using Python3 was still broken: 79/6279/1
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>
6 years agoFix: Make osmclient Python 3 compatible. 76/6276/3
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>
6 years agoFix bug in vnfd/nsd creation when reporting errors 36/6236/2
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>
6 years ago--sol005 as default option 31/6231/2
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>
6 years agovnf-list: printing vim account id 30/6230/2
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>
6 years agousing http codes in sol005 client whenever possible 86/6186/2
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>
6 years agofix bug in vim-create with config 83/6183/1
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>
6 years agofix bugs in vnf-list and vnf-show for sol005 client 78/6178/2
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>
6 years agofix vim-update by using PUT and proper handling of SDN info 68/6168/4
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>
6 years agovnf-list and vnf-show for sol005 client 63/6163/2
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>
6 years agovim-update dealing with SDN controller and port mapping 62/6162/1
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>
6 years agonew --force option for xxx-delete commands in sol005 client 57/6157/1
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>
6 years agofix sol005 client so that delete_cmd output is processed in the caller function 54/6154/1
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>
6 years agofixes for ns-alarm-create and ns-metric-export, disabled ns-alarm-delete 42/6142/3
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>
6 years agoproper handling of http_codes in http.post_cmd 40/6140/2
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>
6 years agoSupport of ns-alarm-create, ns-alarm-delete and ns-metric-export 25/6125/2
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>
6 years agoadding missing help; fixing some checks of client version 20/6120/1
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>
6 years agosdncontroller mgmt using sol005 api 19/6119/1
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>
6 years agosupport of PATCH method for sol005 client 18/6118/1
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>
6 years agoosm.py fix bug in ns-action parameters, missing action_name 80/6080/1 v3.1
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>
6 years agossh key injection enabled with ns-create in sol005 client 76/6076/3
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>
6 years agonew commands: ns-op-list, ns-op-show, ns-action 73/6073/4
garciadeblas [Fri, 4 May 2018 12:15:04 +0000 (14:15 +0200)]
new commands: ns-op-list, ns-op-show, ns-action

Change-Id: Ie19c0f88d85cffbad41d5e71a3cb29ccd21473d4
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
6 years agoosm.py: ns-list providing detailed status of the instantiation 72/6072/1
garciadeblas [Fri, 4 May 2018 11:04:03 +0000 (13:04 +0200)]
osm.py: ns-list providing detailed status of the instantiation

Change-Id: Ib8887db09691a109f7b6aae6c1dd14af4bd34955
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
6 years agoosm.py: obfuscating vim password 68/6068/1
garciadeblas [Thu, 3 May 2018 16:53:41 +0000 (18:53 +0200)]
osm.py: obfuscating vim password

Change-Id: I931aae31c5670990428a3c61c4787a94723d5883
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
6 years agofix bug in upload-package with sol005 client 67/6067/1
garciadeblas [Thu, 3 May 2018 16:48:12 +0000 (18:48 +0200)]
fix bug in upload-package with sol005 client

Change-Id: I3f2ea5c10bbaad65dcbbc8dcef5614aeb3f70677
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
6 years agoreturn http_code,data tuple in DELETE operations for sol005 client 66/6066/1
garciadeblas [Thu, 3 May 2018 16:46:46 +0000 (18:46 +0200)]
return http_code,data tuple in DELETE operations for sol005 client

Change-Id: I2fd4b6bbf03d2c87edb2133da29ea9fae3ccecd9
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
6 years agoosm.py: print error message when using vnf-list with --sol005 65/6065/1
garciadeblas [Thu, 3 May 2018 16:37:54 +0000 (18:37 +0200)]
osm.py: print error message when using vnf-list with --sol005

Change-Id: Ib3a6b85b409cab098c24243f38ea035650438dc3
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
6 years agoosm.py: fixed typo when checking client version 64/6064/1
garciadeblas [Thu, 3 May 2018 16:36:11 +0000 (18:36 +0200)]
osm.py: fixed typo when checking client version

Change-Id: I63e16fd846b6ccf708396338f3a827a1326603ad
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
6 years agoAllow ns-creation params: vim-network, multisite deployement 48/6048/1
tierno [Fri, 27 Apr 2018 12:35:45 +0000 (14:35 +0200)]
Allow ns-creation params: vim-network, multisite deployement

Change-Id: Id9468e2ec761cac7a4aec70999f681580e9be716
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
6 years agoosmclient: sol005.ns create now uses datacenter id 18/6018/1
garciadeblas [Mon, 23 Apr 2018 15:15:56 +0000 (17:15 +0200)]
osmclient: sol005.ns create now uses datacenter id

Change-Id: I67cb2e6d675974e20404400d6e7a0c0b91557bc3
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
6 years agoosm.py: fix bug in ns_list for old NB API 17/6017/1
garciadeblas [Mon, 23 Apr 2018 12:03:54 +0000 (14:03 +0200)]
osm.py: fix bug in ns_list for old NB API

Change-Id: Ibb70825fc6f960afee462c068b6019389dedbad4
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
6 years agoFix issues with python-magic pip library 10/6010/1
garciadeblas [Thu, 19 Apr 2018 13:42:09 +0000 (15:42 +0200)]
Fix issues with python-magic pip library

Change-Id: Ib092e14ba1255de7711fdffe00bdbc4dd9cf4620
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
6 years agoFix setup.py and stdeb.cfg requirements: python-magic 06/6006/4
garciadeblas [Thu, 19 Apr 2018 10:12:17 +0000 (12:12 +0200)]
Fix setup.py and stdeb.cfg requirements: python-magic

Change-Id: I3a09df124ba2cb8ab386507b7298730170e6857e
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
6 years agoosm.py: fix when guessing the fullclassname in check_client_version 93/5993/1
garciadeblas [Wed, 18 Apr 2018 15:14:15 +0000 (17:14 +0200)]
osm.py: fix when guessing the fullclassname in check_client_version

Change-Id: I57b8cca1bd64d0ef42616e1df9d657316cf1a3ce
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
6 years agoFix bug in osmclient when invoking refactored get_key_val_from_pkg 84/5984/1
garciadeblas [Wed, 18 Apr 2018 08:31:58 +0000 (10:31 +0200)]
Fix bug in osmclient when invoking refactored get_key_val_from_pkg

Change-Id: I7ae088c64d6e5315488b79b01c418860acdd833c
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
6 years agoSupport of new OSM NB API following SOL005 48/5848/9
garciadeblas [Tue, 13 Feb 2018 10:58:29 +0000 (11:58 +0100)]
Support of new OSM NB API following SOL005

Change-Id: I24c990dca544410cf4f9273f56b39250cb44bcfa
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
7 years agoadd init method for ns_config 34/5734/1 rift300
Mike Marchetti [Fri, 24 Nov 2017 15:04:53 +0000 (10:04 -0500)]
add init method for ns_config

Signed-off-by: Mike Marchetti <mmarchetti@sandvine.com>
7 years agoallow ns config to set vim network name 08/5708/1
Mike Marchetti [Mon, 20 Nov 2017 18:24:31 +0000 (13:24 -0500)]
allow ns config to set vim network name

Signed-off-by: Mike Marchetti <mmarchetti@sandvine.com>
7 years agodo not add empty config for vim 90/5690/1
Mike Marchetti [Wed, 15 Nov 2017 21:22:14 +0000 (16:22 -0500)]
do not add empty config for vim

- empty config will cause RO to fail vim create
Signed-off-by: Mike Marchetti <mmarchetti@sandvine.com>
7 years agoupdate vim config 82/5682/2
Mike Marchetti [Mon, 13 Nov 2017 15:51:42 +0000 (10:51 -0500)]
update vim config

- use yaml for vim config
Change-Id: I3e449b101cca01239472863e1a425b243c33659a
Signed-off-by: Mike Marchetti <mmarchetti@sandvine.com>
7 years agobug 376 fix 90/5590/1
Mike Marchetti [Mon, 16 Oct 2017 20:42:44 +0000 (16:42 -0400)]
bug 376 fix

- add option to update ro manually

Signed-off-by: Mike Marchetti <mmarchetti@sandvine.com>
7 years agobug 370 bug 364 Use tenant uuid instead of name for RO NBI 62/5562/2
tierno [Wed, 11 Oct 2017 12:25:33 +0000 (14:25 +0200)]
bug 370 bug 364 Use tenant uuid instead of name for RO NBI

Change-Id: I92b6a36ee109cfb4c63116e5f4b316e42762dd78
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
7 years agovim-list Fixed. SO needed refresh of the RO Accounts Change 5516 21/5521/1
Anurag Dwivedi [Wed, 4 Oct 2017 18:19:01 +0000 (14:19 -0400)]
vim-list Fixed. SO needed refresh of the RO Accounts Change 5516

Signed-off-by: Anurag Dwivedi <anurag.dwivedi@riftio.com>
7 years agoRBAC Support for OSMCLIENT 89/5489/2
Anurag Dwivedi [Mon, 2 Oct 2017 14:15:31 +0000 (10:15 -0400)]
RBAC Support for OSMCLIENT

Signed-off-by: Anurag Dwivedi <anurag.dwivedi@riftio.com>
Change-Id: Iaefb4aa98d66b15e69f7fba399bf0cded82e6610

7 years agoMerge "Addressed review comments for https://osm.etsi.org/gerrit/#/c/2068/"
marchettim [Wed, 20 Sep 2017 18:04:40 +0000 (20:04 +0200)]
Merge "Addressed review comments for https://osm.etsi.org/gerrit/#/c/2068/"

7 years agoMerge "Build on jenkins nodes with label docker"
marchettim [Thu, 14 Sep 2017 15:17:53 +0000 (17:17 +0200)]
Merge "Build on jenkins nodes with label docker"

7 years agouse artifactory_server api
Mike Marchetti [Mon, 11 Sep 2017 13:31:43 +0000 (09:31 -0400)]
use artifactory_server api

Signed-off-by: Mike Marchetti <mmarchetti@sandvine.com>
7 years agoBuild on jenkins nodes with label docker 43/2143/1
Wesley Hirsch [Fri, 8 Sep 2017 21:34:15 +0000 (17:34 -0400)]
Build on jenkins nodes with label docker

Change-Id: I07e17d17c74a03314ccbdb5a2a1af08b2ddb5fb9
Signed-off-by: Wesley Hirsch <wesley.hirsch@riftio.com>
7 years agoAddressed review comments for https://osm.etsi.org/gerrit/#/c/2068/ 40/2140/1
kasar [Fri, 8 Sep 2017 11:28:15 +0000 (04:28 -0700)]
Addressed review comments for https://osm.etsi.org/gerrit/#/c/2068/

Change-Id: Ic9ee082b440a38d42a6efec5763f463abadaf71f
Signed-off-by: kasar <pkasar@vmware.com>
7 years agotest commit to test trigger build 49/2049/1
Mike Marchetti [Thu, 27 Jul 2017 21:00:09 +0000 (17:00 -0400)]
test commit to test trigger build

Signed-off-by: Mike Marchetti <mmarchetti@sandvine.com>
7 years agomerge jenkins changes from v2.0 09/2009/1
Mike Marchetti [Wed, 5 Jul 2017 15:54:54 +0000 (11:54 -0400)]
merge jenkins changes from v2.0

Signed-off-by: Mike Marchetti <mmarchetti@sandvine.com>
7 years agoMerge "Snap packaging"
marchettim [Wed, 21 Jun 2017 19:06:02 +0000 (21:06 +0200)]
Merge "Snap packaging"

7 years agoSnap packaging 56/1956/1
Adam Israel [Wed, 21 Jun 2017 18:08:06 +0000 (14:08 -0400)]
Snap packaging

This commit introduces snap packaging for osmclient.

Snaps are a fancy zip file containing an application and all of its
dependencies, and a description of how it should run safely on a
user's system. This is a multi-distribution alternative to installing from source, or debian package.

Snaps are designed to be secure, sandboxed, containerised applications isolated from the underlying system and from other applications. Snaps allow the safe installation of apps from any vendor on mission critical devices and desktops. Updates are done atomically, rolling back automatically in the case of failure, with support for release channel and series.

More info on snaps can be found here: https://snapcraft.io/

Signed-off-by: Adam Israel <adam.israel@canonical.com>
7 years agoremove specific label, use label from gui 52/1952/1
Mike Marchetti [Tue, 20 Jun 2017 21:14:52 +0000 (17:14 -0400)]
remove specific label, use label from gui

Signed-off-by: Mike Marchetti <mmarchetti@sandvine.com>
7 years agoAdd fingerprint to archive 46/1946/1
Mike Marchetti [Mon, 19 Jun 2017 20:26:11 +0000 (16:26 -0400)]
Add fingerprint to archive

Signed-off-by: Mike Marchetti <mmarchetti@sandvine.com>
7 years agoretrieve key/val method from pkg 36/1936/1
Mike Marchetti [Thu, 15 Jun 2017 17:32:23 +0000 (13:32 -0400)]
retrieve key/val method from pkg

Signed-off-by: Mike Marchetti <mmarchetti@sandvine.com>
7 years agoworkaround for shebang line length issue 30/1930/1
Mike Marchetti [Fri, 9 Jun 2017 15:45:04 +0000 (11:45 -0400)]
workaround for shebang line length issue

jenkins pipeline job created a very long path
shebang line length was exceeded causing python interpreter to not start

Signed-off-by: Mike Marchetti <mmarchetti@sandvine.com>
7 years agoclean deb/dist directories before build 01/1901/1 v2.0.1
Mike Marchetti [Wed, 31 May 2017 16:06:44 +0000 (12:06 -0400)]
clean deb/dist directories before build

Signed-off-by: Mike Marchetti <mmarchetti@sandvine.com>
7 years agoutilize tox to build 76/1876/5
Mike Marchetti [Thu, 25 May 2017 15:34:25 +0000 (11:34 -0400)]
utilize tox to build

Signed-off-by: Mike Marchetti <mmarchetti@sandvine.com>
Change-Id: I945367246c18b73fff0788b9b285a2fc9a897cc9

7 years agosimplify build to use docker 69/1869/2
Mike Marchetti [Wed, 24 May 2017 21:30:03 +0000 (17:30 -0400)]
simplify build to use docker

Signed-off-by: Mike Marchetti <mmarchetti@sandvine.com>
Change-Id: Ic70c5f279f4bda9b9605d1ab107e50dcad5cdd10

7 years agoadd missing nose test requirement 31/1831/1 v2.0.0
Mike Marchetti [Tue, 16 May 2017 14:06:00 +0000 (10:06 -0400)]
add missing nose test requirement

Signed-off-by: Mike Marchetti <mmarchetti@sandvine.com>
7 years agoadd dockerfile for pipeline, nose 02/1802/1
Mike Marchetti [Tue, 9 May 2017 17:02:32 +0000 (13:02 -0400)]
add dockerfile for pipeline, nose

- ready dockerfile for pipeline
- add nose support for test search
Signed-off-by: Mike Marchetti <mmarchetti@sandvine.com>
7 years agoremove deprecated file 94/1794/1
Mike Marchetti [Mon, 8 May 2017 20:20:58 +0000 (16:20 -0400)]
remove deprecated file

Signed-off-by: Mike Marchetti <mmarchetti@sandvine.com>
7 years agoupdate Makefile, pep8, scaling 93/1793/1
Mike Marchetti [Mon, 8 May 2017 20:07:20 +0000 (16:07 -0400)]
update Makefile, pep8, scaling

- updated Makefile for build using virtualenv
- add requirements.txt for testing
- fix pep8 errors
- adding ability to scale an ns

Signed-off-by: Mike Marchetti <mmarchetti@sandvine.com>
7 years agorestructure osmclient 63/1763/1
Mike Marchetti [Thu, 4 May 2017 19:06:26 +0000 (15:06 -0400)]
restructure osmclient

- add layering
- add unit tests
- fixup apis for system test usage

Signed-off-by: Mike Marchetti <mmarchetti@sandvine.com>
7 years agoinitial commit 90/1590/1
Mike Marchetti [Wed, 19 Apr 2017 16:42:34 +0000 (12:42 -0400)]
initial commit

Signed-off-by: Mike Marchetti <mmarchetti@sandvine.com>
7 years agoInitial empty repository
almagia [Wed, 19 Apr 2017 15:20:13 +0000 (17:20 +0200)]
Initial empty repository