osm/RO.git
5 years agoskip unknown parameters at VNFD,NSD pyangbind validation 97/7397/1
tierno [Tue, 9 Apr 2019 14:19:40 +0000 (14:19 +0000)]
skip unknown parameters at VNFD,NSD pyangbind validation

Change-Id: Ib5c9536354aed78aea6cded7def9479287006cbe
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
5 years agofixing bug 665 parsing unicode openstack error messages 89/7389/2
tierno [Fri, 5 Apr 2019 12:46:42 +0000 (12:46 +0000)]
fixing bug 665 parsing unicode openstack error messages

Change-Id: I563f65d6ed4dacf482cde5983020d36ecc040c02
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
5 years agofix bug 654. First vdu's placement-groups does not work 69/7369/1
tierno [Fri, 29 Mar 2019 08:50:12 +0000 (08:50 +0000)]
fix bug 654. First  vdu's placement-groups does not work

Change-Id: Idc935fa13ab6b8e138472de4ebc932810a5e9c5b
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
5 years agocapturing wim exceptions properly 64/7364/1
tierno [Mon, 25 Mar 2019 15:00:02 +0000 (15:00 +0000)]
capturing wim exceptions properly

Change-Id: I8bb1dde991e416c30acf841d99fdaea3c788eb97
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
5 years agoRemoved double assignments of variables 53/7353/2
schillinge [Thu, 21 Mar 2019 21:27:04 +0000 (22:27 +0100)]
Removed double assignments of variables

These arrays are already assigned earlier, reassigning them to []
deletes previously added entries, disallowing VNFFGs consisting of
multiple RSPs, Classifiers, ...

Change-Id: Ifda49f7d8528e0e888569745261aa97772c075b8
Signed-off-by: schillinge <ablu@mail.uni-paderborn.de>
5 years agofix error introduced at bu 650 code 54/7354/2
tierno [Thu, 21 Mar 2019 22:12:14 +0000 (22:12 +0000)]
fix error introduced at bu 650 code

Change-Id: Ic9ac1c90e9df70fb3d5ac1e048a75d0d0cfe9431
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
5 years agoImplemented VIM get_vminstance_console method 36/7336/2
kasar [Wed, 20 Mar 2019 08:40:05 +0000 (01:40 -0700)]
Implemented VIM get_vminstance_console method

Change-Id: Ie54a095f9102c98606bb985bc79314017942e124
Signed-off-by: kasar <pkasar@vmware.com>
5 years agobug 650 adding WIM account instantiation parameter. 41/7341/3
tierno [Wed, 20 Mar 2019 17:23:45 +0000 (17:23 +0000)]
bug 650 adding WIM account instantiation parameter.
Allow manual selection of wim or deployment without Wim

Change-Id: If4928ff33ebc671b6870faf20f3b4253c9f59372
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
5 years agoFixed some typos 45/7345/1
garciadeblas [Thu, 21 Mar 2019 08:55:44 +0000 (09:55 +0100)]
Fixed some typos

Change-Id: I6e98001c2fc94d4efd5d2b3be0b401a3c7a862fb
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
5 years agoBug 642 - Need to update VCD VIMconnector for VCD 9.5 95/7295/2
kasar [Wed, 13 Mar 2019 09:21:06 +0000 (02:21 -0700)]
Bug 642 - Need to update VCD VIMconnector for VCD 9.5

Change-Id: I1e5d750302d9b4b81aba025e2629ad1a5e79fb51
Signed-off-by: kasar <pkasar@vmware.com>
5 years agoFix support of multi-segment networks in Openstack; added created_items in all vimconns 16/7216/4
garciadeblas [Thu, 31 Jan 2019 16:01:31 +0000 (16:01 +0000)]
Fix support of multi-segment networks in Openstack; added created_items in all vimconns

Change-Id: I641a337e58138d693970616360dfb9aab021fd2a
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
5 years agoset security groups to neutron port at vimconn openstack 59/7159/8
tierno [Fri, 1 Feb 2019 12:30:27 +0000 (12:30 +0000)]
set security groups to neutron port at vimconn openstack

Change-Id: Id6c2dc28a80ab6d62f33eeb0480a7232e112cf48
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
5 years agoFix logic in adding prefix to ip-a in classifier 76/7276/3
Venkata Harshavardhan Reddy Allu [Fri, 1 Mar 2019 20:39:56 +0000 (02:09 +0530)]
Fix logic in adding prefix to ip-a in classifier

This commit has following changes:

- When 'source-ip-address' or 'destination-ip-address' are not provided
  under "nsd:nsd-catalog:nsd:vnffgd:classifier:match-attributes" this
  would avoid adding the '/32' prefix in the classifier definition.

- add details to classifier definition only if provided.

This patch helps us in creating classifier with minimum details and
avoid errors when 'source-ip-address' or  'destination-ip-address'
 were not provided in nsd.

Change-Id: I5b572552bd670b56faa0aba5833209d198e10450
Signed-off-by: Venkata Harshavardhan Reddy Allu <venkataharshavardhan_ven@srmuniv.edu.in>
5 years agoaddedd region_name to keystone, nova, neutron and cinder to support distributed cloud... 35/7235/1
fatollahy [Tue, 19 Feb 2019 12:53:40 +0000 (12:53 +0000)]
addedd region_name to keystone, nova, neutron and cinder to support distributed cloud for Wind River Titanium cloud and StarlingX

Change-Id: Ic04f35f668f485674760af3805f0a70e4d180477
Signed-off-by: fatollahy <masoud.fatollahy@windriver.com>
5 years agoAdded support for region_name for Distributed cloud implementation of WindRiver Titan... 75/7175/2
fatollahy [Fri, 1 Feb 2019 20:50:46 +0000 (20:50 +0000)]
Added support for region_name for Distributed cloud implementation of WindRiver Titanium Cloud and StarlingX

Change-Id: I639ae150aff154ccc01499b42d6ed659d0eca7ff
Signed-off-by: fatollahy <masoud.fatollahy@windriver.com>
5 years agoImprove race conditions/MySQL reconnection 20/7220/3
Anderson Bravalheri [Fri, 8 Feb 2019 01:44:14 +0000 (01:44 +0000)]
Improve race conditions/MySQL reconnection

This commit aims to provide a better synchronization between all the
different threads in RO, specially regarding DB usage and internal state
consistency.

The following improvements were done:

1. Centralize database retry logic into a single function

  This way we can change the procedure and the rules for retrying in a
  single place and this reflects in several functions simultaneously
  avoiding the need for manual copy and paste (and the potential risk of
  forgetting to change somewhere)

2. Minor fixes/improvements related to database connection loss.

  Previously `db_base` was already able to identify when the connection
  to MySQL was lost, but apparently in a few edge cases the automatic
  reconnection was not done.

3. Implement a transaction method

  This method replaces the old context manager API for the connection
  object that was removed from MySQLdb in version 1.4

  In additional it is possible to use a decorator for transactions
  (not only the context manager), which is handy sometimes.

4. Add lock mechanism directly to db_base

  This helps to improve synchronization between threads.
  Some extra synchronization was introduced to functions, as it seemed
  to be the case.
  Moreover, previously, the cursor object was part of the internal state
  of the db_base object, and it was being changed/used without thread
  synchronization (error-prone). Having the locking mechanism around the
  changes in the cursor property of the class, avoids problems.

5. Add option to fork connection

  Useful when independent threading is needed (as long as different
  threads don't access the same database table, having separated
  connections and locks should work fine).

Change-Id: I3ab34df5e8c2857d96ed14a70e7f65bd0b5189a0
Signed-off-by: Anderson Bravalheri <a.bravalheri@bristol.ac.uk>
5 years agoRe-adding the enum elements for SFC that were missing 09/7209/3
Eduardo Sousa [Thu, 7 Feb 2019 10:53:10 +0000 (10:53 +0000)]
Re-adding the enum elements for SFC that were missing

Change-Id: Ie198147ae914dc35445158489ad85f1156857782
Signed-off-by: Eduardo Sousa <esousa@whitestack.com>
5 years agofix ip-profile ignored at openstack 94/7194/1
tierno [Sun, 3 Feb 2019 22:41:19 +0000 (22:41 +0000)]
fix ip-profile ignored at openstack

Change-Id: I7ba41acd9eea907f0ae29976a4063a25b780c11d
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
5 years agoREMOVE some comments and unnecessary lines 64/7164/2
albertoflorez [Fri, 1 Feb 2019 11:22:47 +0000 (12:22 +0100)]
REMOVE some comments and unnecessary lines

Change-Id: I487b5cf482ce3ae9d3d4940eec6fbbdf75b26174
Signed-off-by: albertoflorez <alberto.florezpages@telefonica.com>
5 years agoFix wrong usage of `isinstance` 63/7163/1
Anderson Bravalheri [Fri, 1 Feb 2019 10:56:55 +0000 (10:56 +0000)]
Fix wrong usage of `isinstance`

Second parameter should be a class, not string

Change-Id: I6401429d7cc314502a364b7fc81e73d30175b193
Signed-off-by: Anderson Bravalheri <a.bravalheri@bristol.ac.uk>
5 years agomake new-net task wim parameter backward compatible 44/7144/1 v5.0.3 v5.0.4
tierno [Wed, 30 Jan 2019 13:35:37 +0000 (13:35 +0000)]
make new-net task wim parameter backward compatible

Change-Id: I90e0b0affa4c5350b9ace0000441e7ba022ea7f2
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
5 years agogetting bug fixes from master 39/7139/1
tierno [Wed, 30 Jan 2019 09:41:30 +0000 (10:41 +0100)]
getting bug fixes from master

Change-Id: Id86af2c276ab34c76c231d36c1c9c1a4c7ecc93a
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
5 years agoMerge "Fixed accidential override of `sfc_encap`"
tierno [Mon, 28 Jan 2019 16:39:48 +0000 (17:39 +0100)]
Merge "Fixed accidential override of `sfc_encap`"

5 years agoadding external port to SDN-Assist when connected to WIM 21/7121/2
tierno [Wed, 23 Jan 2019 10:19:23 +0000 (10:19 +0000)]
adding external port to SDN-Assist when connected to WIM

Change-Id: Ic6902950915a8fde50d162cf425c1851e5bc001c
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
5 years agoFixed accidential override of `sfc_encap` 24/7124/1
schillinge [Thu, 24 Jan 2019 08:25:11 +0000 (09:25 +0100)]
Fixed accidential override of `sfc_encap`

The old code basically hardcoded the use of NSH (which is still broken
in OpenStack's SFC implementation).

Change-Id: I0de4682bca69c7a349d678ae3a8179d78b37c605
Signed-off-by: schillinge <ablu@mail.uni-paderborn.de>
5 years agoMerge branch 'WIM' 13/7113/2
tierno [Mon, 21 Jan 2019 09:55:46 +0000 (09:55 +0000)]
Merge branch 'WIM'

Change-Id: Id314390ba524d22d4e1f74cfe8ef7c808bb8ac0e
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
5 years agoInject "wim_port_mappings" from "wim.config" 63/7063/4
Anderson Bravalheri [Sun, 16 Dec 2018 20:44:08 +0000 (20:44 +0000)]
Inject "wim_port_mappings" from "wim.config"

Automatically create/update port mappings during WIM creation/update,
as discussed in the WIM implementation meeting (12/Dec/2018).

Additionally fix small related errors and ensure wan_port_mappings
are returned by the HTTP server using the same keys forming the schema.

Change-Id: Icc27ad85c1de826ed96cb42b377055ea1b0c2cab
Signed-off-by: Anderson Bravalheri <a.bravalheri@bristol.ac.uk>
5 years agoAdd new fields to instance_net.vim_info 62/7062/4
Anderson Bravalheri [Sun, 16 Dec 2018 19:28:37 +0000 (19:28 +0000)]
Add new fields to instance_net.vim_info

VIM Connectors should provide the fields "encapsulation_type" and
"encapsulation_id", as discussed in the WIM implementation meeting
(21/Nov/2018).

Change-Id: I654d8fa93bef7c37c7ce575c0335154e99fd7347
Signed-off-by: Anderson Bravalheri <a.bravalheri@bristol.ac.uk>
5 years agoChange WAN Actions to use VIM config rules 61/7061/4
Anderson Bravalheri [Fri, 7 Dec 2018 12:51:45 +0000 (12:51 +0000)]
Change WAN Actions to use VIM config rules

Extract switch ID and port by default from
vim.config.external_connections, as discussed in the WIM implementation
meeting (21/Nov/2018).

Change-Id: I95cc5fb0d6ad2822ef4bd1b80e7652bfabf34120
Signed-off-by: Anderson Bravalheri <a.bravalheri@bristol.ac.uk>
5 years agoFind WIM before creating local networks 09/7009/7
Anderson Bravalheri [Fri, 30 Nov 2018 09:55:29 +0000 (09:55 +0000)]
Find WIM before creating local networks

The usage of the wim_account information for create networks inside the
VIMs/datacenters should be developed in future commits

Change-Id: I545455f23cbde9071b2bdc91ae032b7a76e0eefe
Signed-off-by: Anderson Bravalheri <a.bravalheri@bristol.ac.uk>
5 years agoBug 620 VCD VIMconnector: new_network api is going to create "Isolated" type network 99/7099/1
Ananda Baitharu [Mon, 14 Jan 2019 13:05:58 +0000 (13:05 +0000)]
Bug 620 VCD VIMconnector: new_network api is going to create "Isolated" type network

Change-Id: I06f5c877859c488d309baa0d595cb6e6c23f9961
Signed-off-by: Ananda Baitharu <ananda.baitharu@riftio.com>
5 years agoWIM dynpac: Add credentials 94/7094/1
David García [Thu, 10 Jan 2019 22:31:03 +0000 (23:31 +0100)]
WIM dynpac: Add credentials

Change-Id: Iae69fda14d9ffab43af47084b596ba4a5bc8c7a7
Signed-off-by: David García <david.garciaco@ehu.eus>
5 years agofixing database sql errors 88/7088/1
tierno [Tue, 8 Jan 2019 16:22:40 +0000 (16:22 +0000)]
fixing database sql errors

Change-Id: Ic73bf8a47378f4c55ece64014a279264f5bf0855
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
5 years agobug 608 Database migration recovering with docker relaunch 50/7050/2
tierno [Fri, 21 Dec 2018 10:19:38 +0000 (10:19 +0000)]
bug 608 Database migration recovering with docker relaunch

Change-Id: I4005e048b71284c154495a90d8b1256a09e6ff98
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
5 years agoallow pdu without image 75/7075/2
tierno [Wed, 19 Dec 2018 16:00:25 +0000 (16:00 +0000)]
allow pdu without image

Change-Id: Icb02d22d2c1497c1af5cfeff2702d2757bcdcda1
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
5 years agoUpdating VNFFG example to comply with new IM version 54/7054/2
Eduardo Sousa [Wed, 12 Dec 2018 12:09:58 +0000 (12:09 +0000)]
Updating VNFFG example to comply with new IM version

Change-Id: Ie62134ce91cd2686547bb487892474b0d3279e61
Signed-off-by: Eduardo Sousa <esousa@whitestack.com>
5 years agofix issue creating instance of only networks without scenario 69/7069/1
tierno [Tue, 18 Dec 2018 15:19:27 +0000 (15:19 +0000)]
fix issue creating instance of only networks without scenario

Change-Id: Ibeb3a9f6176c7bc5b9178661d88f37bf204d11e0
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
5 years agoAdding vim-network-id parameter to instantiation 66/7066/2
gcalvino [Mon, 17 Dec 2018 15:19:33 +0000 (16:19 +0100)]
Adding vim-network-id parameter to instantiation

Change-Id: I3be6b0b5b0de1ea0f1379a48546f27b45f946b5e
Signed-off-by: gcalvino <guillermo.calvinosanchez@altran.com>
5 years agoAdding support to different ingress and egress ports (SFC) 12/7012/16
Eduardo Sousa [Fri, 30 Nov 2018 15:33:35 +0000 (15:33 +0000)]
Adding support to different ingress and egress ports (SFC)

TODO: update VNFFG example.

Change-Id: I26cf6cc8760516203f8a4fa147bdcd2e00887d89
Signed-off-by: Eduardo Sousa <esousa@whitestack.com>
5 years agoFixing error in Flow Classifier creation (SFC) 01/7001/3
Eduardo Sousa [Thu, 29 Nov 2018 14:55:01 +0000 (14:55 +0000)]
Fixing error in Flow Classifier creation (SFC)

Fetching interfaces from the wrong place.

Change-Id: Ibce20543135272ef6b6ff1bca9d1e151972ec985
Signed-off-by: Eduardo Sousa <esousa@whitestack.com>
5 years agoBug 611 Fix unicode parsing at database 44/7044/2
tierno [Wed, 5 Dec 2018 16:23:38 +0000 (16:23 +0000)]
Bug 611 Fix unicode parsing at database

Change-Id: I08ea1f463cabf776343d58d48fdff9066c483a89
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
5 years agoAdd Dynpac WIM Connector 46/7046/1
David García [Mon, 10 Dec 2018 08:43:50 +0000 (09:43 +0100)]
Add Dynpac WIM Connector

A file osm_ro.wim.wimconn_dynpac added, which defines a the DynpacConnector class

Change-Id: I72fbd5387cdf3c09bc69cdde10713e224b7876ed
Signed-off-by: David García <david.garciaco@ehu.eus>
5 years agoinstance_actions: renamed vim_actions to vim_wim_actions 42/7042/1 v5.0.2
garciadeblas [Wed, 5 Dec 2018 11:42:35 +0000 (12:42 +0100)]
instance_actions: renamed vim_actions to vim_wim_actions

Change-Id: I61d4f61c08a9571785937118be96942ce8b88c94
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
5 years agoFix bug related to scaling: renamed vim_actions to vim_wim_actions 40/7040/1
garciadeblas [Wed, 5 Dec 2018 09:59:40 +0000 (10:59 +0100)]
Fix bug related to scaling: renamed vim_actions to vim_wim_actions

Change-Id: I6d5644fcd25e72083fb1af2ea01091d963bc11fc
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
5 years agoRO-start checks that database is not corrupt 33/7033/2 v5.0.1
tierno [Tue, 4 Dec 2018 14:05:26 +0000 (14:05 +0000)]
RO-start checks that database is not corrupt
Fix healthcheck at dockerfile-local

Change-Id: I49f66013dd6767b8ffbf67564ff6ed7806bec698
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
5 years agoMerge branch 'WIM' into master 28/7028/1
tierno [Mon, 3 Dec 2018 17:51:26 +0000 (18:51 +0100)]
Merge branch 'WIM' into master

Change-Id: Ibef33c7dfcf3c40dbdf278fc160907675ffbeb03
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
5 years agofixing vim_actions backward compatibility 25/7025/1
tierno [Mon, 3 Dec 2018 12:04:48 +0000 (12:04 +0000)]
fixing vim_actions backward compatibility

Change-Id: I7553920aa47baad8773cab27c84df8e60fff0e78
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
5 years agoChange confusing "get_endpoint" name and add docs 91/6991/1
Anderson Bravalheri [Wed, 28 Nov 2018 11:48:14 +0000 (11:48 +0000)]
Change confusing "get_endpoint" name and add docs

Change-Id: Ia39bf1acb0b452b320c41d4ae9e04fc760adeecb
Signed-off-by: Anderson Bravalheri <a.bravalheri@bristol.ac.uk>
5 years agoMerge remote-tracking branch 'upstream/master' into gerrit-submission 66/6966/2
Anderson Bravalheri [Wed, 28 Nov 2018 17:21:26 +0000 (17:21 +0000)]
Merge remote-tracking branch 'upstream/master' into gerrit-submission

Sync with master branch

Change-Id: Ic26d043a84f50f48eeebffb512ccea2eedc053a4
Signed-off-by: Anderson Bravalheri <a.bravalheri@bristol.ac.uk>
5 years agoAllow instance of only networks without scenario 63/6963/1 v5.0.0
tierno [Mon, 26 Nov 2018 14:14:51 +0000 (14:14 +0000)]
Allow instance of only networks without scenario

Change-Id: I442fba52604a3211d2f07a04fff39ce5d3320325
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
5 years ago(bug 589) add proper filtering VDU by instance-id on scalling 61/6961/2
tierno [Mon, 26 Nov 2018 09:28:58 +0000 (09:28 +0000)]
(bug 589) add proper filtering VDU by instance-id on scalling

Change-Id: Iaf4c38d6907a4af5124c85d94518004851b5f6c5
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
6 years agoAdd SRIOV tests for VCD VIMconnector 46/6946/2
Ravi Chamarty [Thu, 22 Nov 2018 01:22:16 +0000 (01:22 +0000)]
Add SRIOV tests for VCD VIMconnector

Change-Id: I2e04063a4c3f7cd9c40a1154ce994e298172ad51
Signed-off-by: Ravi Chamarty <ravi.chamarty@riftio.com>
6 years agoImplement feature 5949 79/6579/11
Anderson Bravalheri [Fri, 17 Aug 2018 14:26:19 +0000 (15:26 +0100)]
Implement feature 5949

Enable dynamic connectivity setup in multi-site Network Services

The code required to implement the feature is contained in `osm_ro/wim`
as much as possible.

* `wim/engine.py` works together with `nfvo.py` to implement the
  feature
* `wim/persistence.py` is equivalent to `nfvo_db.py` and try to
  encapsulate most of the SQL-specific code, implementing a persistence
  layer
* `wim/http_handler.py` extends `httpserver.py` adding WIM-related HTTP
  routes
* `wim/wim_thread.py` is similar to `vim_thread.py` and controls the
  execution of WIM-related tasks
* `wim/actions.py` and `wim/wan_link_actions.py` implement the action
  handling specific code, calling instances of the `wim/wimconn.py`
  subclasses

WIM connectors are still a work in progress

Individual change details (newer to older)

- Add errors for inconsistent state

- Delay re-scheduled tasks

- Move lock to inside the persistence object

- Better errors for connector failures

- Try to cache the wan_link information before it is deleted from the database

- Integrate WanLinkDelete to NFVO

- Add WanLinkDelete implementation draft with some tests

- Add basic wim network creation

- Add minimal documentation for actions

- Add checks to the create action

- Improve documentation, rearrange insert_pending and remove unused functions on WimThread

- Integrate Action classes in refresh_tasks

- Add Action classes to avoid intricate conditions

- Adding Proposed License

- Move grouping of actions to persistence

- Change WimThread to use SQL to do the heavy lifting

- Simplify WimThread reload_actions

- Add tests for derive_wan_links

- Implement find_common_wim(s)

- Add tests for create_wim_account

- Add migration scripts for version 33

- Changes to WIM and VIM threads for vim_wim_actions

- Implement wim_account management according to the discussion

- Add WimHandler integration inside httpserver

- Add quick instructions to run the tests

- Add WIM functional tests using real database

- Add DB WIM port mapping

- RO WIM-related console scripts

- Add WIM integration to NFVO

- Improve database support focusing on tests

- RO NBI WIM-related commands in HTTP server

- Adding WIM tables to MANO DB

- Add wim http handler initial implementation

- Move http utility functions to separated files

    This separation allows the code to be reused more easily and avoids
    circular dependencies.

    (The httpserver can import other modules implementing http routes,
    and those modules can then use the utility functions without having
    to import back httpserver)

- Add a HTTP handler class and custom route decorator

    These tools can be used to create independent groups of bottle
    routes/callbacks in a OOP fashion

- Extract http error codes and related logic to separated file

Change-Id: Icd5fc9fa345852b8cf571e48f427dc10bdbd24c5
Signed-off-by: Anderson Bravalheri <a.bravalheri@bristol.ac.uk>
6 years agoCherry-pick c1ce8ac Changed build to not make osm-im lib-osm-openvim 78/6878/1
tierno [Wed, 14 Nov 2018 11:46:21 +0000 (12:46 +0100)]
Cherry-pick c1ce8ac Changed build to not make osm-im lib-osm-openvim

Change-Id: Ibca462f24900cbd1c30ada08c3c5eb51fe6d30b2
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
6 years agoVNFs with only VLDs compatibility - part2 74/6874/2
gcalvino [Tue, 13 Nov 2018 17:47:28 +0000 (18:47 +0100)]
VNFs with only VLDs compatibility - part2

Change-Id: Id89dd94af4856c5d6d10c59ecfdef764e3308d2b
Signed-off-by: gcalvino <guillermo.calvinosanchez@altran.com>
6 years agofeature 1417 support of PDUs 69/6869/4
tierno [Tue, 13 Nov 2018 09:37:42 +0000 (10:37 +0100)]
feature 1417 support of PDUs

Change-Id: I4f74215f2604daab1bd6a148e37d21a2547f4207
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
6 years agominor fixes at Dockerfile 75/6875/1
tierno [Tue, 13 Nov 2018 18:10:59 +0000 (19:10 +0100)]
minor fixes at Dockerfile

Change-Id: Ic3c610f7652870f256ebd4264f42a16f5c8a8a1e
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
6 years agoNS scenarios without VNFs compatibility 43/6843/3
gcalvino [Mon, 5 Nov 2018 09:42:06 +0000 (10:42 +0100)]
NS scenarios without VNFs compatibility

Change-Id: Ice40df6180ed6ee77377b0b7ac0d14ff85009871
Signed-off-by: gcalvino <guillermo.calvinosanchez@altran.com>
6 years agoChanged build to not make osm-im lib-osm-openvim 71/6871/1
tierno [Tue, 13 Nov 2018 15:06:45 +0000 (15:06 +0000)]
Changed build to not make osm-im lib-osm-openvim

Change-Id: I9f54a356589d3d5fd3e0d40f51bb22e85133e0ee
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
6 years agoMerge "VNFs with only VLDs compatibility"
tierno [Mon, 12 Nov 2018 09:51:22 +0000 (10:51 +0100)]
Merge "VNFs with only VLDs compatibility"

6 years agoVNFs with only VLDs compatibility 49/6849/1
gcalvino [Mon, 5 Nov 2018 14:33:23 +0000 (15:33 +0100)]
VNFs with only VLDs compatibility

Change-Id: If67fc71ba17be046af8c795a473461422d345aaa
Signed-off-by: gcalvino <guillermo.calvinosanchez@altran.com>
6 years agoMinor vmware vcd vimconnectory fixes 17/6817/1
Ravi Chamarty [Wed, 31 Oct 2018 16:12:38 +0000 (16:12 +0000)]
Minor vmware vcd vimconnectory fixes

Change-Id: I9c2f5a3134ba2ac94e0ac9038c44c63753f5fcb5
Signed-off-by: Ravi Chamarty <ravi.chamarty@riftio.com>
6 years agoBug 562 Add support for attaching SRIOV NICs to VCD 9.1 16/6816/1
Ravi Chamarty [Wed, 24 Oct 2018 02:14:53 +0000 (02:14 +0000)]
Bug 562 Add support for attaching SRIOV NICs to VCD 9.1

Change-Id: I8acbb0b5ad4e5d6df2b3f539f709aa6ff3fa2b94
Signed-off-by: Ravi Chamarty <ravi.chamarty@riftio.com>
6 years agoBug 575 Fix token refresh for VCD VIMconnector 15/6815/1
Ravi Chamarty [Tue, 30 Oct 2018 19:51:23 +0000 (19:51 +0000)]
Bug 575 Fix token refresh for VCD VIMconnector

Change-Id: I10ba41f3e4361410eba050a028ce7d8e015ef673
Signed-off-by: Ravi Chamarty <ravi.chamarty@riftio.com>
6 years agoFix VCD VIMconn when model_type is not present for SR-IOV, use net['type'] 14/6814/1
Ravi Chamarty [Fri, 26 Oct 2018 13:47:14 +0000 (13:47 +0000)]
Fix VCD VIMconn when model_type is not present for SR-IOV, use net['type']

Change-Id: I865ccf6b77713f596defeacec3b6cfb17655a5ff
Signed-off-by: Ravi Chamarty <ravi.chamarty@riftio.com>
6 years agoBug 573 VCD: Ensure that more than 2 NICs can get connected to VCD VM 13/6813/1
Ravi Chamarty [Fri, 26 Oct 2018 01:40:50 +0000 (01:40 +0000)]
Bug 573 VCD: Ensure that more than 2 NICs can get connected to VCD VM

Ensure REST API calls for NetworkConfigSection and NetworkConnectionSection use native REST rather than pyvcloud

Change-Id: I2b3edb16445e2cdfb2de23eab34f713d0ead3b28
Signed-off-by: Ravi Chamarty <ravi.chamarty@riftio.com>
6 years agoBug 560 VCD Vimconnector fixes so that all NICs are processed through common code 12/6812/1
Ravi Chamarty [Mon, 22 Oct 2018 23:59:10 +0000 (23:59 +0000)]
Bug 560 VCD Vimconnector fixes so that all NICs are processed through common code

Change-Id: Ic3ecf307b9e6ff7441ae482ff2684ba00b7a7c57
Signed-off-by: Ravi Chamarty <ravi.chamarty@riftio.com>
6 years agoAdd thread id to RO log format 86/6786/1
Ravi Chamarty [Mon, 29 Oct 2018 16:07:03 +0000 (12:07 -0400)]
Add thread id to RO log format

Change-Id: I967aadd19fbecb3335aa833136a368d97997c410
Signed-off-by: Ravi Chamarty <ravi.chamarty@riftio.com>
6 years agoAdded support of PARAVIRT interface type following IM change 6688 65/6765/2
garciadeblas [Thu, 25 Oct 2018 16:33:19 +0000 (18:33 +0200)]
Added support of PARAVIRT interface type following IM change 6688

Change-Id: If6d9d486c2a78b55e6c1218b6292896b0707ca78
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
6 years agoFix typo in vim connectors 64/6764/1
garciadeblas [Thu, 25 Oct 2018 16:17:24 +0000 (18:17 +0200)]
Fix typo in vim connectors

Change-Id: Ieef16fd4bac1ec4ff29426ec244c8655311fdc51
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
6 years agochange default logging to stdout and info level 59/6759/1
tierno [Thu, 25 Oct 2018 12:27:36 +0000 (14:27 +0200)]
change default logging to stdout and info level

Change-Id: Ia0b610bd8ccf049d89df83b7c956e8aa043e8f1a
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
6 years agofeature 1429 add ssh public key to all mgmt vdus 55/6755/2
tierno [Wed, 24 Oct 2018 16:46:03 +0000 (18:46 +0200)]
feature 1429 add ssh public key to all mgmt vdus

Change-Id: I895b2b646083c4cecc03ab247558eb42c060908a
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
6 years agoAdded new RO tests for vCD connector 91/6691/2
kasar [Fri, 12 Oct 2018 09:25:31 +0000 (02:25 -0700)]
Added new RO tests for vCD connector

Change-Id: Idebd83f5f278159968162ae6b739f45affc56cb7
Signed-off-by: kasar <pkasar@vmware.com>
6 years agoFixing SFC 14/6714/8
Eduardo Sousa [Wed, 17 Oct 2018 16:10:04 +0000 (17:10 +0100)]
Fixing SFC

Fixes the changes made in RO to allow SFC to be working again.
Takes care of the dependencies when deleting the different parts,
such as SFIs, SFs, Classifications and SFPs.

Change-Id: Ifc408fae6ea33b6e1c7c0096106150069b62cc91
Signed-off-by: Eduardo Sousa <esousa@whitestack.com>
6 years agoImage and tenant system tests for VIO 24/6624/3
shashankjain [Thu, 4 Oct 2018 07:35:46 +0000 (13:05 +0530)]
Image and tenant system tests for VIO

Change-Id: I0e0241d960dad53f71de806d8f30651873bcc3d0
Signed-off-by: shashankjain <shashankjain@vmware.com>
6 years agoNew VM instance system tests fix for openstack 26/6626/3
kokardekar [Thu, 4 Oct 2018 08:57:09 +0000 (14:27 +0530)]
New VM instance system tests fix for openstack

Change-Id: I153e094afd7aac451a6f2c8cd9b7b1c1cecd6801
Signed-off-by: kokardekar <kaditi@vmware.com>
6 years agoSystem tests fix for openstack. Flavor and Network related system tests are fixed... 25/6625/4
anwars [Thu, 4 Oct 2018 08:35:32 +0000 (14:05 +0530)]
System tests fix for openstack. Flavor and Network related system tests are fixed in this change.

Change-Id: I28aecb130cbfc9ab24d25df4b26a8ac824776d29
Signed-off-by: anwars <anwars@vmware.com>
6 years agoChange at test_RO for test vimconnector 96/6696/1
tierno [Mon, 15 Oct 2018 13:10:36 +0000 (15:10 +0200)]
Change at test_RO for test vimconnector

Change-Id: Id6b9b674b4286380080f09676bed6e751cfa2164
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
6 years agosystem test support for openstack (VIO) 83/6583/3 netslice
shashankjain [Fri, 28 Sep 2018 06:29:03 +0000 (11:59 +0530)]
system test support for openstack (VIO)

Change-Id: Icb4675887e115a1d9d29a6c4e9ebb75285e56314
Signed-off-by: shashankjain <shashankjain@vmware.com>
6 years agofix bug 555 Change extended pci validation schema for sdn port mapping 05/6605/2
tierno [Tue, 2 Oct 2018 11:43:47 +0000 (13:43 +0200)]
fix bug 555 Change extended pci validation schema for sdn port mapping

Change-Id: I04eb9e35d313dcd61203e96f80a1c21ba78b6088
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
6 years agoBug 556 Fix VCD 9.1 compliance - Align to vcloud 30.0 API 87/6687/2
Ravi Chamarty [Sun, 7 Oct 2018 15:45:44 +0000 (15:45 +0000)]
Bug 556 Fix VCD 9.1 compliance - Align to vcloud 30.0 API

Signed-off-by: Ravi Chamarty <ravi.chamarty@riftio.com>
6 years agoUnit Tests fix for Openstack vimconnector 85/6585/2
anwars [Fri, 28 Sep 2018 10:30:13 +0000 (16:00 +0530)]
Unit Tests fix for Openstack vimconnector

Change-Id: I37cffcbf803a1ec69fa660ae443fc24cd31ffb26
Signed-off-by: anwars <anwars@vmware.com>
6 years agoChange dockerfile-local to install osm-im, lib-osm-openvim and RO from source instead... 71/6471/13
tierno [Wed, 12 Sep 2018 14:29:23 +0000 (16:29 +0200)]
Change dockerfile-local to install osm-im, lib-osm-openvim and RO from source instead of making

Change-Id: I03af69a2f798ed5b0645c2d3eac4ac48b15805a2
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
6 years agoAdd version schedule pep440-git-full 92/6592/2
tierno [Mon, 1 Oct 2018 13:43:57 +0000 (15:43 +0200)]
Add version schedule pep440-git-full

Change-Id: I23e53bd74c17685c691090b6abec6e15ea659698
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
6 years agoModified LICENSE file to be the same in all repos 72/6572/1
garciadeblas [Thu, 27 Sep 2018 08:35:23 +0000 (10:35 +0200)]
Modified LICENSE file to be the same in all repos

Change-Id: I9a1c0ba12dd12aedad75e1587d67ceacac2d7295
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
6 years agobug 537 SDN-assist does not connect new instances over an existing vim network 62/6462/2
tierno [Fri, 7 Sep 2018 12:05:32 +0000 (14:05 +0200)]
bug 537 SDN-assist does not connect new instances over an existing vim network

Change-Id: I47115d0957cd9c64606085132fd3f7e4003e7fc2
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
6 years agofix error when no size is provided at vnfd:vdus:volumes 59/6459/3
tierno [Thu, 6 Sep 2018 11:47:11 +0000 (13:47 +0200)]
fix error when no size is provided at vnfd:vdus:volumes

Change-Id: I092245407d4acdb75b373e40905d9fc2e2b44b20
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
6 years agofix dockerfile local 94/6494/1
tierno [Fri, 14 Sep 2018 21:16:19 +0000 (21:16 +0000)]
fix dockerfile local

Change-Id: Iffd4c1f6a65b505db84ab30b98f3f526b4ff47d0
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
6 years agoAdding RO-start.sh to deb package for Dockerfile 70/6470/3
tierno [Wed, 12 Sep 2018 14:25:42 +0000 (16:25 +0200)]
Adding RO-start.sh to deb package for Dockerfile

Change-Id: I2f61868a288a8217dbf2a5c0920f736ec547ffcc
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
6 years agoinstall-openmano.sh change to install osm-im, lib-osm-openvim in pure python2 without... 63/6463/7
tierno [Mon, 10 Sep 2018 09:04:31 +0000 (11:04 +0200)]
install-openmano.sh change to install osm-im, lib-osm-openvim in pure python2 without calling make that imposes many unneeded packages

Change-Id: I3149a1b7656a2adb5b1a4ffbb973e49a6a00d0e0
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
6 years agoAdding IM python3 dependencies 60/6460/2
Eduardo Sousa [Thu, 6 Sep 2018 13:43:08 +0000 (14:43 +0100)]
Adding IM python3 dependencies

Change-Id: Ib55fa999b79302833030e55d5e7b897d1e120bbd
Signed-off-by: Eduardo Sousa <eduardosousa@av.it.pt>
6 years agoReplacing Openstack Pike libraries by Queens 55/6455/1
Eduardo Sousa [Mon, 3 Sep 2018 10:56:07 +0000 (11:56 +0100)]
Replacing Openstack Pike libraries by Queens

Change-Id: Ieb6d8219c7ce023a9d75242d70aeca43c89371af
Signed-off-by: Eduardo Sousa <eduardosousa@av.it.pt>
6 years agoFix bug 535 propagate instantiaon paramget mac_address 48/6448/2
tierno [Fri, 31 Aug 2018 11:24:08 +0000 (11:24 +0000)]
Fix bug 535 propagate instantiaon paramget mac_address
Set pip2 at installation scripts

Change-Id: Ifafada5520bf7b892e47c6f7e3145bb7541920e3
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
6 years agoadded RO-of for managing openflow utility from inside RO container 45/6445/1
tierno [Wed, 29 Aug 2018 13:15:52 +0000 (13:15 +0000)]
added RO-of for managing openflow utility from inside RO container

Change-Id: Iadcfd4e9fe23c2f12d3bca1d08b7b31bd15f83ca
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
6 years agofixing bug: vim config were not loaded at vim_thread 42/6442/2
tierno [Wed, 29 Aug 2018 08:56:13 +0000 (10:56 +0200)]
fixing bug: vim config were not loaded at vim_thread

Change-Id: If6cb843ed30d5bb843e31316c86056a681e7ea60
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
6 years agoAdded new unit tests for vCD connector 21/6421/2
kasar [Fri, 17 Aug 2018 12:24:30 +0000 (05:24 -0700)]
Added new unit tests for vCD connector

Change-Id: Idaa74d92e70c8ddc4df6e970df086fbe691501f6
Signed-off-by: kasar <pkasar@vmware.com>
6 years agoIntroduce deprecating methods 33/6433/1
tierno [Fri, 24 Aug 2018 09:34:54 +0000 (11:34 +0200)]
Introduce deprecating methods

Change-Id: Ic35d8596631cc6c30ea9e54a1144c6d6c08e6e79
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
6 years agoreplacing ocata Openstack libraries by pike 81/6281/3
garciadeblas [Fri, 15 Jun 2018 17:23:45 +0000 (19:23 +0200)]
replacing ocata Openstack libraries by pike

Change-Id: Id78c1d361e6c0502ea03ce0944da58df908c7501
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
6 years agoRestrict git describe to tags matching v* 03/6403/1 BUILD_v4.0.1_2
Michael Marchetti [Fri, 3 Aug 2018 14:16:59 +0000 (16:16 +0200)]
Restrict git describe to tags matching v*

Signed-off-by: Michael Marchetti <mmarchetti@sandvine.com>
6 years agoimplementation of vdu:interface:mgmt-interface for getting vdu ip address 77/6377/3 BUILD_v4.0.1_1
tierno [Mon, 23 Jul 2018 14:16:00 +0000 (16:16 +0200)]
implementation of vdu:interface:mgmt-interface for getting vdu ip address

Change-Id: I3d7e0116b0fc6624846ccc0803c3f00f820e5bde
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>