New Inventory type for TD 37/84537/5
authorLukasz Rajewski <lukasz.rajewski@orange.com>
Tue, 2 Apr 2019 10:08:19 +0000 (12:08 +0200)
committerLukasz Rajewski <lukasz.rajewski@orange.com>
Thu, 18 Apr 2019 14:21:04 +0000 (16:21 +0200)
commit38185437b8251ecfe5220d3bbc35bfb07b414852
treef33098df4a01adb1c89a0aafb393129f37f6e698
parent9d1da5ec7f01d0a9c1d7344786eb0be8dc24138f
New Inventory type for TD

* New inventory type 'vfmodule' for ditribute traffic and
  refactored 'service' type that has many functions in
  common with 'vfmodule' type
* Improved optimizer for random pick algorithm when no
  optimization constraint is specified
* Unit tests added
* resolve_demands() refactored to make it testable and to remove
  code repetitions for different inventory types

Change-Id: If5c7e7d2d4e7c1b449d0b37e5c33c697aa4e653f
Issue-ID: OPTFRA-445
Signed-off-by: Lukasz Rajewski <lukasz.rajewski@orange.com>
21 files changed:
conductor/conductor/controller/translator.py
conductor/conductor/data/plugins/inventory_provider/aai.py
conductor/conductor/data/service.py
conductor/conductor/solver/optimizer/constraints/service.py
conductor/conductor/solver/optimizer/optimizer.py
conductor/conductor/solver/optimizer/random_pick.py
conductor/conductor/solver/service.py
conductor/conductor/tests/unit/controller/test_translator.py
conductor/conductor/tests/unit/data/demands_vfmodule.json [new file with mode: 0644]
conductor/conductor/tests/unit/data/plugins/inventory_provider/bad_generic_vnf_list.json [new file with mode: 0644]
conductor/conductor/tests/unit/data/plugins/inventory_provider/service_candidates.json [new file with mode: 0644]
conductor/conductor/tests/unit/data/plugins/inventory_provider/service_demand_list.json [new file with mode: 0644]
conductor/conductor/tests/unit/data/plugins/inventory_provider/test_aai.py
conductor/conductor/tests/unit/data/plugins/inventory_provider/vfmodule_candidates.json [new file with mode: 0644]
conductor/conductor/tests/unit/data/plugins/inventory_provider/vfmodule_complex.json [new file with mode: 0644]
conductor/conductor/tests/unit/data/plugins/inventory_provider/vfmodule_demand_list.json [new file with mode: 0644]
conductor/conductor/tests/unit/data/plugins/inventory_provider/vfmodule_list.json [new file with mode: 0644]
conductor/conductor/tests/unit/data/plugins/inventory_provider/vfmodule_region.json [new file with mode: 0644]
conductor/conductor/tests/unit/data/plugins/inventory_provider/vfmodule_service_generic_vnf_list.json [new file with mode: 0644]
conductor/conductor/tests/unit/data/plugins/inventory_provider/vfmodule_vserver.json [new file with mode: 0644]
conductor/conductor/tests/unit/data/test_service.py